Fix DIGEST-MD5 support for picky servers

This commit is contained in:
Lance Stout
2012-11-27 19:54:46 -05:00
parent 0eb009496e
commit b820351f64
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -467,7 +467,8 @@ class DIGEST(Mech):
'qop': self.qop,
'digest-uri': quote(self.digest_uri()),
'response': self.response(b'AUTHENTICATE'),
'maxbuf': self.maxbuf
'maxbuf': self.maxbuf,
'charset': 'utf-8'
}
resp = b''
for key, value in data.items():
@@ -480,7 +481,7 @@ class DIGEST(Mech):
if self.cnonce and self.nonce and self.nonce_count and self.qop:
self.nonce_count += 1
return self.respond()
return b''
return None
data = self.parse(challenge)
if 'rspauth' in data: