Permalink
Browse files

if HTTP_ACCEPT is not provided, defaeult to ''

  • Loading branch information...
crschmidt committed May 22, 2009
1 parent b16ecf4 commit a96af6bd8c876416d540d970605f2f416c3e1fa1
Showing with 1 addition and 1 deletion.
  1. +1 −1 web_request/web_request/handlers.py
@@ -118,7 +118,7 @@ def wsgi (dispatch_function, environ, start_response):
if environ.has_key("CONTENT_TYPE"):
accepts = environ['CONTENT_TYPE']
else:
- accepts = environ['HTTP_ACCEPT']
+ accepts = environ.get('HTTP_ACCEPT', '')
request_method = environ["REQUEST_METHOD"]

0 comments on commit a96af6b

Please sign in to comment.