We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfd6c46 commit 12e9322Copy full SHA for 12e9322
mux_test.go
@@ -422,9 +422,9 @@ func TestMethodNotAllowed(t *testing.T) {
422
t.Fatal(resp.Status)
423
}
424
allowedMethods := resp.Header.Values("Allow")
425
- if len(allowedMethods) != 2 || allowedMethods[0] != "GET" || allowedMethods[1] != "HEAD" {
+ if len(allowedMethods) != 2 || ((allowedMethods[0] != "GET" || allowedMethods[1] != "HEAD") &&
426
+ (allowedMethods[1] != "GET" || allowedMethods[0] != "HEAD")) {
427
t.Fatal("Allow header should contain 2 headers: GET, HEAD. Received: ", allowedMethods)
-
428
429
})
430
0 commit comments