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 2019/11/25 17:44:21 UTC
[couchdb] 06/10: allow calls to get_httpd_handlers from other
applications
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch 1523-bye-bye-5986-rnewson-4
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit efbc783b07c5a463c1b1a98ce877be8dd34d2029
Author: Robert Newson <rn...@apache.org>
AuthorDate: Mon Nov 25 14:02:48 2019 +0000
allow calls to get_httpd_handlers from other applications
---
src/couch/src/couch_httpd.erl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/couch/src/couch_httpd.erl b/src/couch/src/couch_httpd.erl
index 2eea640..ba35d6f 100644
--- a/src/couch/src/couch_httpd.erl
+++ b/src/couch/src/couch_httpd.erl
@@ -163,21 +163,21 @@ auth_handler_name(SpecStr) ->
lists:nth(?HANDLER_NAME_IN_MODULE_POS, re:split(SpecStr, "[\\W_]", [])).
get_httpd_handlers() ->
- {ok, HttpdGlobalHandlers} = application:get_env(httpd_global_handlers),
+ {ok, HttpdGlobalHandlers} = application:get_env(couch, httpd_global_handlers),
UrlHandlersList = lists:map(
fun({UrlKey, SpecStr}) ->
{?l2b(UrlKey), make_arity_1_fun(SpecStr)}
end, HttpdGlobalHandlers),
- {ok, HttpdDbHandlers} = application:get_env(httpd_db_handlers),
+ {ok, HttpdDbHandlers} = application:get_env(couch, httpd_db_handlers),
DbUrlHandlersList = lists:map(
fun({UrlKey, SpecStr}) ->
{?l2b(UrlKey), make_arity_2_fun(SpecStr)}
end, HttpdDbHandlers),
- {ok, HttpdDesignHandlers} = application:get_env(httpd_design_handlers),
+ {ok, HttpdDesignHandlers} = application:get_env(couch, httpd_design_handlers),
DesignUrlHandlersList = lists:map(
fun({UrlKey, SpecStr}) ->