Skip to content
Myr

Issue #2334 - HTTPDigestAuth - Replace getattr utilization

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

Following Lukasa + kennethreitz suggestion.

authored by exvito · committed by exvito · parent 845e8f9 · 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
165 unmodified lines
166 if self.pos is not None:167 # Rewind the file position indicator of the body to where168 # it was to resend the request.169 r.request.body.seek(self.pos)170 num_401_calls = getattr(self.num_401_calls, 'value', 1)170 num_401_calls = self.num_401_calls.value171 s_auth = r.headers.get('www-authenticate', '')172173 if 'digest' in s_auth.lower() and num_401_calls < 2:174
40 unmodified lines