Commits

mili...@milinnovations.com  committed 7a8ac90

Add fix to make digest auth with internet explorer 8 (and possibly other versions)

  • Participants
  • Parent commits ae0c92b

Comments (0)

Files changed (1)

File paste/auth/digest.py

         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']