Skip to content
Myr

Case insensitive algorithm detection for digest authentication. (#2204)

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

authored by Tom Christie · committed by GitHub · parent e58b491 · 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.

Trailers

  • Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:httpx/_auth.py+1 added-1 removed
208 unmodified lines
209210 def _build_auth_header(211 self, request: Request, challenge: "_DigestAuthChallenge"212 ) -> str:213 hash_func = self._ALGORITHM_TO_HASH_FUNCTION[challenge.algorithm]213 hash_func = self._ALGORITHM_TO_HASH_FUNCTION[challenge.algorithm.upper()]214215 def digest(data: bytes) -> bytes:216 return hash_func(data).hexdigest().encode()217
87 unmodified lines