Skip to content

Commit

Permalink
[#1192] ust get to get headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly authored and amercader committed Oct 28, 2013
1 parent 0437b23 commit 18549aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/config/middleware.py
Expand Up @@ -335,8 +335,8 @@ def __call__(self, environ, start_response):
key = ''.join([
environ['HTTP_USER_AGENT'],
environ['REMOTE_ADDR'],
environ['HTTP_ACCEPT_LANGUAGE'],
environ['HTTP_ACCEPT_ENCODING'],
environ.get('HTTP_ACCEPT_LANGUAGE', ''),
environ.get('HTTP_ACCEPT_ENCODING', ''),
])
key = hashlib.md5(key).hexdigest()
# store key/data here
Expand Down

0 comments on commit 18549aa

Please sign in to comment.