From 3d11ba7a84a728f3e4de09fab0381ca662036929 Mon Sep 17 00:00:00 2001 From: k2tzumi Date: Fri, 2 Dec 2022 20:39:35 +0900 Subject: [PATCH] =?UTF-8?q?=E2=8F=AA=20refs=20https://github.com/getkin/ki?= =?UTF-8?q?n-openapi/pull/672,=20https://github.com/k1LoW/runn/pull/91,=20?= =?UTF-8?q?Removed=20reset=20process=20for=20request=20Body=20for=20tempor?= =?UTF-8?q?ary=20support.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/http.go b/http.go index 3000681e..04449a11 100644 --- a/http.go +++ b/http.go @@ -252,16 +252,6 @@ func (rnr *httpRunner) Run(ctx context.Context, r *httpRequest) error { if err := rnr.validator.ValidateRequest(ctx, req); err != nil { return err } - // reset Request.Body - reqBody, err := r.encodeBody() - if err != nil { - return err - } - rc, ok := reqBody.(io.ReadCloser) - if !ok && reqBody != nil { - rc = io.NopCloser(reqBody) - } - req.Body = rc r.setContentTypeHeader(req) for k, v := range r.headers {