summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2018-09-13 14:52:54 +0200
committerJan Lehnardt <jan@apache.org>2018-11-09 14:51:33 +0100
commit69453db0152bb85f856d359c9ed0433d27da2ff2 (patch)
tree6b812984478db0beae2fe7b896c0103505c49993
parent8ef520947c104fec5c420f4a731e5eeba9d27e84 (diff)
downloadcouchdb-69453db0152bb85f856d359c9ed0433d27da2ff2.tar.gz
remove config: [httpd] default_handler
-rw-r--r--rel/overlay/etc/default.ini1
-rw-r--r--src/couch/src/couch_httpd.erl5
2 files changed, 1 insertions, 5 deletions
diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini
index ba2a498eb..3fe59c92d 100644
--- a/rel/overlay/etc/default.ini
+++ b/rel/overlay/etc/default.ini
@@ -132,7 +132,6 @@ database_prefix = userdb-
port = {{backend_port}}
bind_address = 127.0.0.1
authentication_handlers = {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler}
-default_handler = {couch_httpd_db, handle_request}
secure_rewrites = true
vhost_global_handlers = _utils, _uuids, _session, _users
allow_jsonp = false
diff --git a/src/couch/src/couch_httpd.erl b/src/couch/src/couch_httpd.erl
index e66a78e70..0663020ff 100644
--- a/src/couch/src/couch_httpd.erl
+++ b/src/couch/src/couch_httpd.erl
@@ -104,10 +104,7 @@ start_link(Name, Options) ->
Else -> Else
end,
ok = validate_bind_address(BindAddress),
- DefaultSpec = "{couch_httpd_db, handle_request}",
- DefaultFun = make_arity_1_fun(
- config:get("httpd", "default_handler", DefaultSpec)
- ),
+ DefaultFun = make_arity_1_fun("{couch_httpd_db, handle_request}"),
UrlHandlersList = lists:map(
fun({UrlKey, SpecStr}) ->