Author: rnewson
Date: Wed Feb 2 19:55:30 2011
New Revision: 1066596
URL: http://svn.apache.org/viewvc?rev=1066596&view=rev
Log:
cleaner fix for COUCHDB-969
Modified:
couchdb/branches/1.1.x/src/couchdb/couch_httpd_auth.erl
Modified: couchdb/branches/1.1.x/src/couchdb/couch_httpd_auth.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_httpd_auth.erl?rev=1066596&r1=1066595&r2=1066596&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_httpd_auth.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_httpd_auth.erl Wed Feb 2 19:55:30 2011
@@ -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;
|