changeset 2937:46fdfcf42806

HTTP_AUTHORIZATION may be not present in environment
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sat, 20 Nov 2004 17:46:24 +0000
parents b5ad71ecf72b
children 463902a0fbbb
files roundup/cgi/client.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/client.py	Sat Nov 20 11:54:32 2004 +0000
+++ b/roundup/cgi/client.py	Sat Nov 20 17:46:24 2004 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.202 2004-11-18 16:21:07 a1s Exp $
+# $Id: client.py,v 1.203 2004-11-20 17:46:24 a1s Exp $
 
 """WWW request handler (also used in the stand-alone server).
 """
@@ -379,7 +379,7 @@
             user = 'anonymous'
 
         # try handling Basic Auth ourselves
-        if (user == 'anonymous') and self.env['HTTP_AUTHORIZATION']:
+        if (user == 'anonymous') and self.env.get('HTTP_AUTHORIZATION', ''):
             scheme, challenge = self.env['HTTP_AUTHORIZATION'].split(' ', 1)
             if scheme.lower() == 'basic':
                 try:

Roundup Issue Tracker: http://roundup-tracker.org/