Ticket #8121: 8121-r8137.diff

File 8121-r8137.diff, 575 bytes (added by Joost Cassee, 16 years ago)
  • django/middleware/locale.py

     
    1919
    2020    def process_response(self, request, response):
    2121        patch_vary_headers(response, ('Accept-Language',))
    22         response['Content-Language'] = translation.get_language()
     22        if 'Content-Language' not in response:
     23            response['Content-Language'] = translation.get_language()
    2324        translation.deactivate()
    2425        return response
Back to Top