Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #16 from dweissengruber/master
Browse files Browse the repository at this point in the history
Update http.go / Fix proto/http.go:191:17: undefined: io.NopCloser
  • Loading branch information
jerson authored Nov 11, 2021
2 parents 6f94c8c + ba86f4d commit 86b9dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proto/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func DumpRequest(req *http.Request, body bool) ([]byte, error) {

//from httputil, here to use custom drainBody func
var errNoBody = errors.New("sentinel error value")
var emptyBody = io.NopCloser(strings.NewReader(""))
var emptyBody = ioutil.NopCloser(strings.NewReader(""))

type failureToReadBody struct{}

Expand Down

0 comments on commit 86b9dfb

Please sign in to comment.