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

Support non-ASCII chars in postgres credentials #630

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

frigus02
Copy link

The url crate returns username and password portions of a URL as percent encoded ASCII strings. In order to use them for the Postgres connection, we need to decode them.

This seems to be a regression from #214.

We found this as well when connecting to a PostgreSQL DB in Azure, which uses the username@hostname format for all it's usernames.

The `url` crate returns username and password portions of a URL as
percent encoded ASCII strings. In order to use them for the Postgres
connection, we need to decode them.
@mehcode mehcode merged commit 67099d9 into launchbadge:master Aug 20, 2020
@mehcode
Copy link
Member

mehcode commented Aug 20, 2020

Thanks for the fix and the tests.

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.

2 participants