Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> (cherry picked from commit 2c2cd9b86a2e738b1ccf379971e4a0235ab9c758) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@@ -35,6 +35,7 @@ func (h *reqBodyHandler) newRequest(rc io.ReadCloser) (string, func()) {
h.mu.Lock()
delete(h.requests, id)
h.mu.Unlock()
+ rc.Close()
}