From 30dad51e496a127b1e78c52d70065a4db4da8f55 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 12 Oct 2021 17:20:48 +0300 Subject: [PATCH] Do not forget about body closing --- trip.go | 1 + 1 file changed, 1 insertion(+) diff --git a/trip.go b/trip.go index d4ed572..2d04a18 100644 --- a/trip.go +++ b/trip.go @@ -59,6 +59,7 @@ type Round func( ) (bool, error) func roundTrip(w http.ResponseWriter, req *http.Request) { + defer req.Body.Close() fifos.LogReq <- fmt.Sprintf("%s %s", req.Method, req.URL) host := strings.TrimSuffix(req.URL.Host, ":443") for _, round := range []Round{ -- 2.44.0