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:
Adrian Holovaty 2006-05-05 03:19:16 +00:00
parent 427a54b4a3
commit 503a27d212
1 changed files with 1 additions and 1 deletions

View File

@ -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