mirror of
https://github.com/django/django.git
synced 2025-09-27 12:39:17 +00:00
Fixed #1707 -- LocaleMiddleware now sets Content-Language header. Thanks, ubernostrum
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
427a54b4a3
commit
503a27d212
1 changed files with 1 additions and 1 deletions
|
@ -19,6 +19,6 @@ class LocaleMiddleware:
|
|||
|
||||
def process_response(self, request, response):
|
||||
patch_vary_headers(response, ('Accept-Language',))
|
||||
response['Content-Language'] = translation.get_language()
|
||||
translation.deactivate()
|
||||
return response
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue