summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Bicking <ianb@colorstudy.com>2010-11-29 12:03:44 -0600
committerIan Bicking <ianb@colorstudy.com>2010-11-29 12:03:44 -0600
commit95c72213ea545ecead3dcd008ab4a8a2d78e3959 (patch)
tree40fff2c04bf57a6c2bc7eea31b410159d1d8f0cd
parentd945f23bdfca7ed6ddea1c9e2a78d9c1ed1c8abc (diff)
parentf0eedebcd92b89d7149523bf7242481caddbb74a (diff)
downloadpaste-95c72213ea545ecead3dcd008ab4a8a2d78e3959.tar.gz
Automated merge with https://bitbucket.org/milinnovations_andreas/paste/
-rw-r--r--paste/auth/digest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/auth/digest.py b/paste/auth/digest.py
index 1b5ba84..483c38d 100644
--- a/paste/auth/digest.py
+++ b/paste/auth/digest.py
@@ -99,8 +99,8 @@ class AuthDigestAuthenticator(object):
if 'digest' != authmeth.lower():
return self.build_authentication()
amap = {}
- for itm in auth.split(", "):
- (k,v) = [s.strip() for s in itm.split("=", 1)]
+ for itm in auth.split(","):
+ (k,v) = [s.strip() for s in itm.strip().split("=", 1)]
amap[k] = v.replace('"', '')
try:
username = amap['username']