Summary: Get rid of FillInRemoteUserIfLoggedInMiddleware, we are not

using Apache/REMOTE_USER to login anymore, and it's forcing a vary:
cookie header even on pages that don't check on the logged in user
(i.e. things not rendering through the base template)
 - Legacy-Id: 9075
This commit is contained in:
Ole Laursen 2015-02-12 15:16:29 +00:00
parent 04219b9d94
commit b334550d9c
2 changed files with 0 additions and 7 deletions

View file

@ -43,9 +43,3 @@ class UnicodeNfkcNormalization(object):
request.META["PATH_INFO"] = unicodedata.normalize('NFKC', request.META["PATH_INFO"])
request.path_info = unicodedata.normalize('NFKC', request.path_info)
return None
class FillInRemoteUserIfLoggedInMiddleware(object):
def process_request(self, request):
if request.user.is_authenticated() and "REMOTE_USER" not in request.META:
request.META["REMOTE_USER"] = request.user.username

View file

@ -160,7 +160,6 @@ MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'ietf.middleware.FillInRemoteUserIfLoggedInMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.http.ConditionalGetMiddleware',
'ietf.middleware.SQLLogMiddleware',