API: update basic-auth tests to allow OPTIONS
This commit is contained in:
parent
bba410af32
commit
c71e42f5ad
|
@ -408,9 +408,9 @@ func TestBasicAuth(t *testing.T) {
|
|||
checker: assertHTTPStatusIsUnauthoriazed,
|
||||
},
|
||||
{
|
||||
method: "OPTIONS",
|
||||
method: "OPTIONS", // Always allowed for CORS
|
||||
path: "/foo",
|
||||
checker: assertHTTPStatusIsUnauthoriazed,
|
||||
checker: makeHTTPStatusNegatedAssert(assertHTTPStatusIsUnauthoriazed),
|
||||
},
|
||||
{
|
||||
method: "PUT",
|
||||
|
|
Loading…
Reference in New Issue
Block a user