Fix standalone server headers not having HTTP_AUTHORIZATION. Closes #874.

This commit is contained in:
Steve Pulec 2017-04-12 20:40:55 -04:00
parent 11edde2eaa
commit 03c4d9fe20

View File

@ -59,7 +59,7 @@ class DomainDispatcherApplication(object):
try:
_, _, region, service, _ = environ['HTTP_AUTHORIZATION'].split(",")[0].split()[
1].split("/")
except ValueError:
except (KeyError, ValueError):
region = 'us-east-1'
service = 's3'
if service == 'dynamodb':