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 (
3030 "reflect"
3131 "strings"
3232 "testing"
33- )
3433
35- import (
3634 "github.com/bfenetworks/bfe/bfe_bufio"
3735)
3836
@@ -397,7 +395,7 @@ func testMissingFile(t *testing.T, req *Request) {
397395 t .Errorf ("FormFile file = %v, want nil" , f )
398396 }
399397 if fh != nil {
400- t .Errorf ("FormFile file header = %q , want nil" , fh )
398+ t .Errorf ("FormFile file header = %v , want nil" , fh )
401399 }
402400 if err != ErrMissingFile {
403401 t .Errorf ("FormFile err = %q, want ErrMissingFile" , err )
@@ -497,7 +495,7 @@ Content-Disposition: form-data; name="textb"
497495`
498496
499497func benchmarkReadRequest (b * testing.B , request string ) {
500- request += "\n " // final \n
498+ request += "\n " // final \n
501499 request = strings .ReplaceAll (request , "\n " , "\r \n " ) // expand \n to \r\n
502500 b .SetBytes (int64 (len (request )))
503501 r := bfe_bufio .NewReader (& infiniteReader {buf : []byte (request )})
You can’t perform that action at this time.
0 commit comments