Kaydet (Commit) 503a27d2 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

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
üst 427a54b4
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment