Skip to content

Fix HTTPDigestAuth with bytes credentials#7266

Open
oaksprout wants to merge 1 commit intopsf:mainfrom
oaksprout:fix-digest-auth-bytes
Open

Fix HTTPDigestAuth with bytes credentials#7266
oaksprout wants to merge 1 commit intopsf:mainfrom
oaksprout:fix-digest-auth-bytes

Conversation

@oaksprout
Copy link

When passing bytes for username or password to HTTPDigestAuth, they are incorrectly stringified as b'...' in the Authorization header and in the A1 hash. This PR ensures that bytes are decoded to strings using UTF-8 (per RFC 7616) to ensure correct formatting and hashing. Fixes #6102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTTPDigestAuth fails on non-latin credentials

1 participant