Merge pull request #4021 from fomentia/master

Close HTTP response in Agent test (HTTPAPI_MethodNotAllowed_OSS)
This commit is contained in:
Jack Pearkes 2018-04-27 09:28:01 -07:00 committed by GitHub
commit 5a14443b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {