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 2016/10/19 11:19:49 UTC

chttpd commit: updated refs/heads/master to 21a59b4

Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 5974a8f54 -> 21a59b4d8


return a binary so the existing tests pass


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/21a59b4d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/21a59b4d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/21a59b4d

Branch: refs/heads/master
Commit: 21a59b4d80e5c0dbe43c6047fe79b215ff1aa436
Parents: 5974a8f
Author: Robert Newson <rn...@apache.org>
Authored: Wed Oct 19 12:19:32 2016 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Oct 19 12:19:32 2016 +0100

----------------------------------------------------------------------
 src/chttpd.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/21a59b4d/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index 2ae45c4..33e7876 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -491,7 +491,7 @@ set_auth_handlers() ->
 % - is not very robust (a space after the ',' is assumed)
 auth_handler_name(SpecStr) ->
     {ok, {_, Fun}} = couch_util:parse_term(SpecStr),
-    hd(string:tokens(atom_to_list(Fun), "_")).
+    hd(binary:split(atom_to_binary(Fun, latin1), <<"_">>)).
 
 authenticate_request(Req) ->
     {ok, AuthenticationFuns} = application:get_env(chttpd, auth_handlers),