mirror of https://github.com/django/django.git
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
|
@ -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…
Reference in New Issue