Commits

Joel Rivera committed 7cac23d

Add support to specify the algorithm name in lowercase (or mixedcase)
in the auth_digest tool.
Fix for issue #1188.

  • Participants
  • Parent commits a9158c7

Comments (0)

Files changed (1)

File cherrypy/lib/auth_digest.py

         self.uri = paramsd.get('uri')
         self.method = paramsd.get('method')
         self.response = paramsd.get('response') # the response digest
-        self.algorithm = paramsd.get('algorithm', 'MD5')
+        self.algorithm = paramsd.get('algorithm', 'MD5').upper()
         self.cnonce = paramsd.get('cnonce')
         self.opaque = paramsd.get('opaque')
         self.qop = paramsd.get('qop') # qop