Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Lib/urllib/request.py
Comment thread
calvinbui marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,8 @@ def get_algorithm_impls(self, algorithm):
elif algorithm == 'SHA':
Comment thread
gpshead marked this conversation as resolved.
Outdated
H = lambda x: hashlib.sha1(x.encode("ascii")).hexdigest()
# XXX MD5-sess
elif algorithm == 'SHA-256':
Comment thread
calvinbui marked this conversation as resolved.
H = lambda x: hashlib.sha256(x.encode("ascii")).hexdigest()
else:
raise ValueError("Unsupported digest authentication "
"algorithm %r" % algorithm)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support digest authentication algorithm SHA-256
Comment thread
calvinbui marked this conversation as resolved.
Outdated