Close HTTP response in Agent test (HTTPAPI_MethodNotAllowed_OSS)
This commit is contained in:
parent
d5b8b75614
commit
2926294865
|
@ -60,6 +60,7 @@ func TestHTTPAPI_MethodNotAllowed_OSS(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal("client.Do failed: ", err)
|
t.Fatal("client.Do failed: ", err)
|
||||||
}
|
}
|
||||||
|
defer resp.Body.Close()
|
||||||
|
|
||||||
allowed := method == "OPTIONS"
|
allowed := method == "OPTIONS"
|
||||||
for _, allowedMethod := range allowedMethods {
|
for _, allowedMethod := range allowedMethods {
|
||||||
|
|
Loading…
Reference in New Issue