omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

Avoid passing bytes to string format in header #948

Closed EdwardBetts closed 8 years ago

EdwardBetts commented 8 years ago

Using Python 3, we need to pass a str to format, not bytes. Otherwise we end up with an Authorization that looks like:

Authorization: Basic b'Zm9vOmJhcg=='

EdwardBetts commented 8 years ago

I've managed to mix multiple changes into a single pull request. I'm going to close this one.