Skip to content

Commit

Permalink
Remove request prep for full body captures
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane authored Apr 11, 2024
1 parent 74815df commit 958eb82
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion protocol_rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func (r restClientProtocol) encodeEnd(op *operation, end *responseEnd, writer io
func (r restClientProtocol) requestNeedsPrep(op *operation) bool {
return len(op.restTarget.vars) != 0 ||
len(op.request.URL.Query()) != 0 ||
op.restTarget.requestBodyFields != nil ||
restHTTPBodyRequest(op) ||
// non-nil, empty requestBodyFields means the request
// uses the entire body, but anything else requires prep
Expand Down

0 comments on commit 958eb82

Please sign in to comment.