mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
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
This commit is contained in:
parent
0639474d01
commit
40702fe2f0
1 changed files with 4 additions and 0 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue