couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r724786 - /incubator/couchdb/trunk/src/couchdb/couch_httpd.erl
Date Tue, 09 Dec 2008 17:22:12 GMT
Author: jchris
Date: Tue Dec  9 09:22:12 2008
New Revision: 724786

URL: http://svn.apache.org/viewvc?rev=724786&view=rev
Log:
user name should be binary for json

Modified:
    incubator/couchdb/trunk/src/couchdb/couch_httpd.erl

Modified: incubator/couchdb/trunk/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/src/couchdb/couch_httpd.erl?rev=724786&r1=724785&r2=724786&view=diff
==============================================================================
--- incubator/couchdb/trunk/src/couchdb/couch_httpd.erl (original)
+++ incubator/couchdb/trunk/src/couchdb/couch_httpd.erl Tue Dec  9 09:22:12 2008
@@ -184,7 +184,7 @@
     {User, Pass} ->
         case couch_server:is_admin(User, Pass) of
         true ->
-            #user_ctx{name=User, roles=[<<"_admin">>]};
+            #user_ctx{name=?l2b(User), roles=[<<"_admin">>]};
         false ->
             throw({unauthorized, <<"Name or password is incorrect.">>})
         end;



Mime
View raw message