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 into
jgarzik: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 into
jgarzik: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

gandaro commented Apr 29, 2013

Copy link
Copy Markdown
Contributor

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

@luke-jr

luke-jr commented May 2, 2013

Copy link
Copy Markdown
Contributor

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

gandaro commented May 3, 2013

Copy link
Copy Markdown
Contributor

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

@luke-jr

luke-jr commented Sep 3, 2013

Copy link
Copy Markdown
Contributor

#23 also fixes this in a more compatible way.

@jgarzik

jgarzik commented Sep 3, 2013

Copy link
Copy Markdown
Owner

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