Skip to content

Commit a96af6b

Browse files
committed
if HTTP_ACCEPT is not provided, defaeult to ''
1 parent b16ecf4 commit a96af6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_request/web_request/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def wsgi (dispatch_function, environ, start_response):
118118
if environ.has_key("CONTENT_TYPE"):
119119
accepts = environ['CONTENT_TYPE']
120120
else:
121-
accepts = environ['HTTP_ACCEPT']
121+
accepts = environ.get('HTTP_ACCEPT', '')
122122

123123
request_method = environ["REQUEST_METHOD"]
124124

0 commit comments

Comments
 (0)