Skip to content

Commit

Permalink
Fixed middleware bug and translation error (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
njal3001 committed Jan 19, 2023
1 parent 4fac855 commit 83a19ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ msgstr "Slack channel"
msgid "who5"
msgstr ""
"The on-call system ensures that you always meet someone in the workshop "
"ready todemonstrate equipment or help you."
"ready to demonstrate equipment or help you."

#: templates/website/index.html:61
msgid "Les mer om oss her"
Expand Down
2 changes: 1 addition & 1 deletion website/middleware/remove_accept_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def __init__(self, get_response):
self.get_response = get_response

def __call__(self, request):
if request.META["HTTP_ACCEPT_LANGUAGE"]:
if "HTTP_ACCEPT_LANGUAGE" in request.META:
del request.META["HTTP_ACCEPT_LANGUAGE"]

response = self.get_response(request)
Expand Down

0 comments on commit 83a19ab

Please sign in to comment.