close request bodies

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-11-04 10:28:54 +01:00
parent fbe3470ef3
commit 76c63ef696
3 changed files with 10 additions and 0 deletions

View File

@@ -145,6 +145,9 @@ func TestProxyIntegration(t *testing.T) {
if err != nil {
t.Fatal("Error reading result body")
}
if err = rr.Result().Body.Close(); err != nil {
t.Fatal("Error closing result body")
}
bodyString := string(resultBody)
if bodyString != `OK` {