Skip to content
Myr

Merge pull request #1375 from t-8ch/fix_digest_auth

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

don't replace 'Digest' in digest header value

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 8b55a25, 3b0d8b8 · 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
151 unmodified lines
152 if 'digest' in s_auth.lower() and num_401_calls < 2:153154 setattr(self, 'num_401_calls', num_401_calls + 1)155 pat = re.compile(r'digest ', flags=re.IGNORECASE)156 self.chal = parse_dict_header(pat.sub('', s_auth))156 self.chal = parse_dict_header(pat.sub('', s_auth, count=1))157158 # Consume content and release the original connection159 # to allow our new request to reuse the same one.160 r.content
17 unmodified lines