Skip to content

Fix: Decode auth header, to not encode it as b'...' in the HTTP request#11

Closed
devurandom wants to merge 1 commit intojgarzik:masterfrom
devurandom:fix/decode-auth-header
Closed

Fix: Decode auth header, to not encode it as b'...' in the HTTP request#11
devurandom wants to merge 1 commit intojgarzik:masterfrom
devurandom:fix/decode-auth-header

Conversation

@devurandom
Copy link
Copy Markdown
Contributor

Currently, the authpair is encoded as b'...' within the HTTP request, which is obviously wrong. This commit fixes it.

@gandaro
Copy link
Copy Markdown
Contributor

gandaro commented Apr 29, 2013

This should definitely be included. Works in Python 2 and 3.

@luke-jr
Copy link
Copy Markdown
Contributor

luke-jr commented May 2, 2013

Since the header needs to be encoded eventually, the original method stored the header as bytes rather than a string. This regression came from 2736b3d. It might be ideal to just do the same as it used to do, in case for any reason someone needs to use a non-UTF8 user/pass.

@gandaro
Copy link
Copy Markdown
Contributor

gandaro commented May 3, 2013

Oh, sorry! I thought the .encode would not have such an impact. It's probably better to do it how it was.

@luke-jr
Copy link
Copy Markdown
Contributor

luke-jr commented Sep 3, 2013

#23 also fixes this in a more compatible way.

@jgarzik
Copy link
Copy Markdown
Owner

jgarzik commented Sep 3, 2013

Closed, obsolete

@jgarzik jgarzik closed this Sep 3, 2013
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.

4 participants