Skip to content
Permalink
80df834e8b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
10 lines (8 sloc) 280 Bytes
"""
Django middleware that builds on the RemoteUserMiddleware
base class and sets the header to inspect for the username
to HTTP_MAIL.
"""
from django.contrib.auth.middleware import RemoteUserMiddleware
class MailHeaderMiddleware(RemoteUserMiddleware):
header = 'HTTP_MAIL'