Repository: couchdb-chttpd Updated Branches: refs/heads/master c6a5cddc2 -> 2f5365260
Remove /_sleep endpoint Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/2f536526 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/2f536526 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/2f536526 Branch: refs/heads/master Commit: 2f53652602c31661c3d4fe9540bcb0d095ef98a5 Parents: c6a5cdd Author: Alexander Shorin <[email protected]> Authored: Mon Apr 13 23:03:48 2015 +0300 Committer: Alexander Shorin <[email protected]> Committed: Mon Apr 13 23:03:48 2015 +0300 ---------------------------------------------------------------------- src/chttpd.erl | 1 - src/chttpd_misc.erl | 8 -------- 2 files changed, 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/2f536526/src/chttpd.erl ---------------------------------------------------------------------- diff --git a/src/chttpd.erl b/src/chttpd.erl index 6754613..185912b 100644 --- a/src/chttpd.erl +++ b/src/chttpd.erl @@ -367,7 +367,6 @@ url_handler("_active_tasks") -> fun chttpd_misc:handle_task_status_req/1; url_handler("_reload_query_servers") -> fun chttpd_misc:handle_reload_query_servers_req/1; url_handler("_replicate") -> fun chttpd_misc:handle_replicate_req/1; url_handler("_uuids") -> fun chttpd_misc:handle_uuids_req/1; -url_handler("_sleep") -> fun chttpd_misc:handle_sleep_req/1; url_handler("_session") -> fun chttpd_auth:handle_session_req/1; url_handler("_oauth") -> fun couch_httpd_oauth:handle_oauth_req/1; url_handler("_up") -> fun chttpd_misc:handle_up_req/1; http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/2f536526/src/chttpd_misc.erl ---------------------------------------------------------------------- diff --git a/src/chttpd_misc.erl b/src/chttpd_misc.erl index 6423a91..ca89270 100644 --- a/src/chttpd_misc.erl +++ b/src/chttpd_misc.erl @@ -18,7 +18,6 @@ handle_favicon_req/2, handle_replicate_req/1, handle_reload_query_servers_req/1, - handle_sleep_req/1, handle_system_req/1, handle_task_status_req/1, handle_up_req/1, @@ -91,13 +90,6 @@ maybe_add_csp_headers(Headers, "true") -> maybe_add_csp_headers(Headers, _) -> Headers. -handle_sleep_req(#httpd{method='GET'}=Req) -> - Time = list_to_integer(chttpd:qs_value(Req, "time")), - receive snicklefart -> ok after Time -> ok end, - send_json(Req, {[{ok, true}]}); -handle_sleep_req(Req) -> - send_method_not_allowed(Req, "GET,HEAD"). - handle_all_dbs_req(#httpd{method='GET'}=Req) -> Args = couch_mrview_http:parse_params(Req, undefined), ShardDbName = config:get("mem3", "shards_db", "_dbs"),
