Skip to content
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...
1 parent 427a54b commit 503a27d2123d33cac701d04f848e2b18a6c030c8 @adrianholovaty adrianholovaty committed
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
-

0 comments on commit 503a27d

Please sign in to comment.
Something went wrong with that request. Please try again.