From ee2fd9c60d9d06609622dbc8d5c6b0570b7dc7ec Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Wed, 2 Feb 2011 19:55:30 +0000 Subject: 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 --- src/couchdb/couch_httpd_auth.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/couchdb/couch_httpd_auth.erl') 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; -- cgit v1.2.3