Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Small change to modpython auth handler to support Apache 2.2

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6305 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 40702fe2f0506b2bcf376df1066d6c606314f51a 1 parent 0639474
@jacobian jacobian authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/contrib/auth/handlers/modpython.py
View
4 django/contrib/auth/handlers/modpython.py
@@ -10,6 +10,10 @@ def authenhandler(req, **kwargs):
# that so that the following import works
os.environ.update(req.subprocess_env)
+ # apache 2.2 requires a call to req.get_basic_auth_pw() before
+ # req.user and friends are available.
+ req.get_basic_auth_pw()
+
# check for PythonOptions
_str_to_bool = lambda s: s.lower() in ('1', 'true', 'on', 'yes')
Please sign in to comment.
Something went wrong with that request. Please try again.