Skip to content

Commit

Permalink
feat!: remove SetContentLength for io.Reader request flow #878
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm committed Oct 6, 2024
1 parent 68fc2d7 commit a0a1e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func parseRequestBody(c *Client, r *Request) error {
}
}
} else {
r.Body = nil // if payload not support by HTTP verb set explict nil
r.Body = nil // if the payload is not supported by HTTP verb, set explicit nil
}

// by default resty won't set content length, you can if you want to :)
Expand Down

0 comments on commit a0a1e4d

Please sign in to comment.