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:
 | 
			
		||||
                _, _, region, service, _ = environ['HTTP_AUTHORIZATION'].split(",")[0].split()[
 | 
			
		||||
                    1].split("/")
 | 
			
		||||
            except ValueError:
 | 
			
		||||
            except (KeyError, ValueError):
 | 
			
		||||
                region = 'us-east-1'
 | 
			
		||||
                service = 's3'
 | 
			
		||||
            if service == 'dynamodb':
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user