You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2011/02/02 20:53:28 UTC

svn commit: r1066595 - /couchdb/branches/1.0.x/src/couchdb/couch_httpd_auth.erl

Author: rnewson
Date: Wed Feb  2 19:53:28 2011
New Revision: 1066595

URL: http://svn.apache.org/viewvc?rev=1066595&view=rev
Log:
cleaner fix for COUCHDB-969

Modified:
    couchdb/branches/1.0.x/src/couchdb/couch_httpd_auth.erl

Modified: couchdb/branches/1.0.x/src/couchdb/couch_httpd_auth.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_httpd_auth.erl?rev=1066595&r1=1066594&r2=1066595&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_httpd_auth.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_httpd_auth.erl Wed Feb  2 19:53:28 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;