mirror of https://github.com/status-im/consul.git
Close HTTP response in Agent test (HTTPAPI_MethodNotAllowed_OSS)
This commit is contained in:
parent
464bad03cb
commit
01f5db46e8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue