Close HTTP response in Agent test (HTTPAPI_MethodNotAllowed_OSS)

This commit is contained in:
Isaac Williams 2018-04-10 08:02:47 -04:00
parent d5b8b75614
commit 2926294865
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ func TestHTTPAPI_MethodNotAllowed_OSS(t *testing.T) {
if err != nil {
t.Fatal("client.Do failed: ", err)
}
defer resp.Body.Close()
allowed := method == "OPTIONS"
for _, allowedMethod := range allowedMethods {