Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #1707 -- LocaleMiddleware now sets Content-Language header. Tha…

…nks, ubernostrum

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 503a27d2123d33cac701d04f848e2b18a6c030c8 1 parent 427a54b
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/middleware/locale.py
View
2  django/middleware/locale.py
@@ -19,6 +19,6 @@ def process_request(self, request):
def process_response(self, request, response):
patch_vary_headers(response, ('Accept-Language',))
+ response['Content-Language'] = translation.get_language()
translation.deactivate()
return response
-
Please sign in to comment.
Something went wrong with that request. Please try again.