allow calls to get_httpd_handlers from other applications
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 @@
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}) ->