summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2011-02-02 19:55:30 +0000
committerRobert Newson <rnewson@apache.org>2011-02-02 19:55:30 +0000
commitee2fd9c60d9d06609622dbc8d5c6b0570b7dc7ec (patch)
tree9cf5adfc21111ddf9bb339e3a47829df3adac985 /src
parentf8c7e2a63e6244a209c9db34b332c276c8bee8de (diff)
cleaner fix for COUCHDB-969
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1066596 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-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;