File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,7 @@ import (
30
30
"reflect"
31
31
"strings"
32
32
"testing"
33
- )
34
33
35
- import (
36
34
"github.com/bfenetworks/bfe/bfe_bufio"
37
35
)
38
36
@@ -397,7 +395,7 @@ func testMissingFile(t *testing.T, req *Request) {
397
395
t .Errorf ("FormFile file = %v, want nil" , f )
398
396
}
399
397
if fh != nil {
400
- t .Errorf ("FormFile file header = %q , want nil" , fh )
398
+ t .Errorf ("FormFile file header = %v , want nil" , fh )
401
399
}
402
400
if err != ErrMissingFile {
403
401
t .Errorf ("FormFile err = %q, want ErrMissingFile" , err )
@@ -497,7 +495,7 @@ Content-Disposition: form-data; name="textb"
497
495
`
498
496
499
497
func benchmarkReadRequest (b * testing.B , request string ) {
500
- request += "\n " // final \n
498
+ request += "\n " // final \n
501
499
request = strings .ReplaceAll (request , "\n " , "\r \n " ) // expand \n to \r\n
502
500
b .SetBytes (int64 (len (request )))
503
501
r := bfe_bufio .NewReader (& infiniteReader {buf : []byte (request )})
You can’t perform that action at this time.
0 commit comments