Skip to content
Myr

don't replace 'Digest' in digest header value

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

See https://github.com/kennethreitz/requests/issues/1358

authored by Thomas Weißschuh · committed by Thomas Weißschuh · parent 2aabb71 · 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