diff --git a/protocol_rest.go b/protocol_rest.go index ae724a7..3d0b4f0 100644 --- a/protocol_rest.go +++ b/protocol_rest.go @@ -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