Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 503a27d2123d33cac701d04f848e2b18a6c030c8 1 parent 427a54b
Adrian Holovaty authored May 05, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/middleware/locale.py
2  django/middleware/locale.py
@@ -19,6 +19,6 @@ def process_request(self, request):
19 19
 
20 20
     def process_response(self, request, response):
21 21
         patch_vary_headers(response, ('Accept-Language',))
  22
+        response['Content-Language'] = translation.get_language()
22 23
         translation.deactivate()
23 24
         return response
24  
-

0 notes on commit 503a27d

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