Skip to content

Commit aea1b4e

Browse files
committed
comments regarding rfc7616
1 parent 1d9d1af commit aea1b4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/urllib/request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ def http_error_407(self, req, fp, code, msg, headers):
10481048

10491049

10501050
class AbstractDigestAuthHandler:
1051-
# Digest authentication is specified in RFC 2617.
1051+
# Digest authentication is specified in RFC 2617/7616.
10521052

10531053
# XXX The client does not inspect the Authentication-Info header
10541054
# in a successful response.
@@ -1176,6 +1176,7 @@ def get_authorization(self, req, chal):
11761176
return base
11771177

11781178
def get_algorithm_impls(self, algorithm):
1179+
# algorithm names taken from RFC 7616 Section 6.1
11791180
# lambdas assume digest modules are imported at the top level
11801181
if algorithm == 'MD5':
11811182
H = lambda x: hashlib.md5(x.encode("ascii")).hexdigest()

0 commit comments

Comments
 (0)