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:
parent
04219b9d94
commit
b334550d9c
|
@ -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
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue