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