mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
cors: allow None to match missing headers
this is apparently needed to run against newer versions of the requests library Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
e050c10295
commit
8dfbf70d16
1 changed files with 2 additions and 2 deletions
|
@ -5832,8 +5832,8 @@ def _cors_request_and_check(func, url, headers, expect_status, expect_allow_orig
|
||||||
r = func(url, headers=headers)
|
r = func(url, headers=headers)
|
||||||
eq(r.status_code, expect_status)
|
eq(r.status_code, expect_status)
|
||||||
|
|
||||||
assert r.headers['access-control-allow-origin'] == expect_allow_origin
|
assert r.headers.get('access-control-allow-origin', None) == expect_allow_origin
|
||||||
assert r.headers['access-control-allow-methods'] == expect_allow_methods
|
assert r.headers.get('access-control-allow-methods', None) == expect_allow_methods
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue