Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth_secret should be a bytestring #202

Closed
wants to merge 1 commit into from
Closed

Conversation

ericb
Copy link

@ericb ericb commented Mar 8, 2018

When a string is passed to auth_secret the AUTH command fails due to the body not being in bytes, but if you pass auth_secret as bytes, it will fail the string assertion, rendering auth unusable.

This changes the assertion to check for bytes types, but it could easily be flipped around to accept a string and auto-convert to bytes.

@ploxiln
Copy link
Member

ploxiln commented Mar 8, 2018

I guess no one tried to use auth with python3 - nice catch

@ploxiln
Copy link
Member

ploxiln commented Jul 20, 2018

Thanks for the report, and sorry we forgot about it for a while. I fixed this slightly differently in #217

@ploxiln ploxiln closed this Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants