Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Escape passwords so that they can use reserve characters in the password #69

Closed
wants to merge 1 commit into from

2 participants

Andrew Newman Benoit Chesneau
Andrew Newman

This is my attempt (as someone who doesn't know anything about Erlang) to fix #68

Seems to work.

Benoit Chesneau
Owner

need to be fixed upstream in hackney.

Benoit Chesneau benoitc closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/erica_util.erl
3  src/erica_util.erl
View
@@ -72,7 +72,8 @@ db_from_string(DbString, IsCreateDb) ->
undefined ->
[{basic_auth, {Username, ""}}];
Password ->
- [{basic_auth, {Username, Password}}]
+ EscapedPassword = http_uri:decode(Password),
+ [{basic_auth, {Username, EscapedPassword}}]
end
end,
Something went wrong with that request. Please try again.