Skip to content

Commit

Permalink
Ensure IGNORED_HEADERS check matches correctly by lowercasing
Browse files Browse the repository at this point in the history
  • Loading branch information
jdotjdot committed Apr 9, 2016
1 parent f2583b1 commit 1215500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_seo_js/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, *args, **kwargs):
def build_django_response_from_requests_response(self, response):
r = HttpResponse(response.content)
for k, v in response.headers.items():
if k not in IGNORED_HEADERS:
if k.lower() not in IGNORED_HEADERS:
r[k] = v
r['content-length'] = len(response.content)
r.status_code = response.status_code
Expand Down

0 comments on commit 1215500

Please sign in to comment.