Fix standalone server headers not having HTTP_AUTHORIZATION. Closes #874.
This commit is contained in:
parent
11edde2eaa
commit
03c4d9fe20
@ -59,7 +59,7 @@ class DomainDispatcherApplication(object):
|
|||||||
try:
|
try:
|
||||||
_, _, region, service, _ = environ['HTTP_AUTHORIZATION'].split(",")[0].split()[
|
_, _, region, service, _ = environ['HTTP_AUTHORIZATION'].split(",")[0].split()[
|
||||||
1].split("/")
|
1].split("/")
|
||||||
except ValueError:
|
except (KeyError, ValueError):
|
||||||
region = 'us-east-1'
|
region = 'us-east-1'
|
||||||
service = 's3'
|
service = 's3'
|
||||||
if service == 'dynamodb':
|
if service == 'dynamodb':
|
||||||
|
Loading…
Reference in New Issue
Block a user