Skip to content

Commit

Permalink
Fix standalone server headers not having HTTP_AUTHORIZATION. Closes #874
Browse files Browse the repository at this point in the history
.
  • Loading branch information
spulec committed Apr 13, 2017
1 parent 11edde2 commit 03c4d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moto/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_application(self, environ):
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':
Expand Down

0 comments on commit 03c4d9f

Please sign in to comment.