Skip to content

Commit

Permalink
⏪ refs getkin/kin-openapi#672, #91, Removed reset process for request…
Browse files Browse the repository at this point in the history
… Body for temporary support.
  • Loading branch information
k2tzumi committed Dec 2, 2022
1 parent 7de26d6 commit 3d11ba7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions http.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 3d11ba7

Please sign in to comment.