Permalink
Browse files

Vary on Accept-Language removed, since the language-code prefix makes…

… the URL unique for every language.
  • Loading branch information...
1 parent bcd4059 commit 0317a934c25d7fd4ebc59608cbd25551bad3a5d6 @brocaar committed May 18, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −1 i18nurls/__init__.py
  2. +0 −2 i18nurls/middleware.py
View
@@ -1,4 +1,4 @@
from i18nurls.urlresolvers import I18NRegexURLPattern, I18NRegexURLResolver
-__VERSION__ = '0.5'
+__VERSION__ = '0.5.1dev'
View
@@ -1,7 +1,6 @@
from django.conf import settings
from django.http import HttpResponseRedirect
from django.utils import translation
-from django.utils.cache import patch_vary_headers
class LocaleMiddleware(object):
@@ -26,7 +25,6 @@ def process_response(self, request, response):
no language-code prefix is found, return a `HttpResponseRedirect` to the
language-code prefixed `request.path`.
"""
- patch_vary_headers(response, ('Accept-Language',))
language_code = translation.get_language()
translation.deactivate()

0 comments on commit 0317a93

Please sign in to comment.