Cleanup refactor.
This commit is contained in:
parent
5de95b026a
commit
1fb06e6a08
@ -80,8 +80,9 @@ class DomainDispatcherApplication(object):
|
|||||||
if target:
|
if target:
|
||||||
service, _ = target.split('.', 1)
|
service, _ = target.split('.', 1)
|
||||||
service, region = UNSIGNED_REQUESTS.get(service, DEFAULT_SERVICE_REGION)
|
service, region = UNSIGNED_REQUESTS.get(service, DEFAULT_SERVICE_REGION)
|
||||||
# S3 is the last resort when the target is also unknown
|
else:
|
||||||
service, region = DEFAULT_SERVICE_REGION
|
# S3 is the last resort when the target is also unknown
|
||||||
|
service, region = DEFAULT_SERVICE_REGION
|
||||||
|
|
||||||
if service == 'dynamodb':
|
if service == 'dynamodb':
|
||||||
if environ['HTTP_X_AMZ_TARGET'].startswith('DynamoDBStreams'):
|
if environ['HTTP_X_AMZ_TARGET'].startswith('DynamoDBStreams'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user