From 958eb8264ea2b8fd2c1e6964a23a4d4363c85ad5 Mon Sep 17 00:00:00 2001 From: Edward McFarlane <3036610+emcfarlane@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:23:33 -0400 Subject: [PATCH] Remove request prep for full body captures --- protocol_rest.go | 1 - 1 file changed, 1 deletion(-) 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