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 committed Aug 15, 2013
1 parent 2892b66 commit 1337eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/config/middleware.py
Expand Up @@ -338,8 +338,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 1337eed

Please sign in to comment.