Skip to content
Myr

Merge pull request #2917 from matt-jordan/qop

Before adoption: this commit came in with the history the project adopted, so no landing records it.

requests/auth: Handle an empty 'qop' attribute in an Authenticate challenge

authored by Ian Cordasco · committed by Ian Cordasco · parents 40ce366, 5c19d3e · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/auth.py+1 added-1 removed
134 unmodified lines
135 cnonce = (hashlib.sha1(s).hexdigest()[:16])136 if _algorithm == 'MD5-SESS':137 HA1 = hash_utf8('%s:%s:%s' % (HA1, nonce, cnonce))138139 if qop is None:139 if not qop:140 respdig = KD(HA1, "%s:%s" % (nonce, HA2))141 elif qop == 'auth' or 'auth' in qop.split(','):142 noncebit = "%s:%s:%s:%s:%s" % (143 nonce, ncvalue, cnonce, 'auth', HA2
80 unmodified lines