X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=trip.go;fp=trip.go;h=2d04a18a6505169ac0822e8ce77da6cfcb06b0d3;hb=30dad51e496a127b1e78c52d70065a4db4da8f55;hp=d4ed57205bbd8d184320dc8412ed0f9be395dce4;hpb=4e4ec4c34727091d72186017ba4e27bd6de11270;p=tofuproxy.git 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{