summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/couchdb/couch_httpd_auth.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_auth.erl b/src/couchdb/couch_httpd_auth.erl
index 2111c009..1639624a 100644
--- a/src/couchdb/couch_httpd_auth.erl
+++ b/src/couchdb/couch_httpd_auth.erl
@@ -53,7 +53,7 @@ basic_name_pw(Req) ->
nil;
[User, Pass] ->
{User, Pass};
- [User | Pass] ->
+ [User | Pass] when is_list(Pass) ->
{User, string:join(Pass, ":")};
[User] ->
{User, ""};