Skip to content

Commit

Permalink
fix http: request body too large err
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Mar 27, 2024
1 parent eb403d4 commit 407f2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/normalization.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func readNNormalizeRespBody(rc *ResponseChain, body *bytes.Buffer) (err error) {
return errors.Wrap(err, "could not read response body after gzip error")
}
}
if stringsutil.ContainsAny(err.Error(), "unexpected EOF", "read: connection reset by peer", "user canceled") {
if stringsutil.ContainsAny(err.Error(), "unexpected EOF", "read: connection reset by peer", "user canceled", "http: request body too large") {
// keep partial body and continue (skip error) (add meta header in response for debugging)
if response.Header == nil {
response.Header = make(http.Header)
Expand Down

0 comments on commit 407f2c1

Please sign in to comment.