diff options
Diffstat (limited to 'src/chttpd_misc.erl')
-rw-r--r-- | src/chttpd_misc.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/chttpd_misc.erl b/src/chttpd_misc.erl index f67ebf22..e6d3c76a 100644 --- a/src/chttpd_misc.erl +++ b/src/chttpd_misc.erl @@ -16,7 +16,7 @@ handle_all_dbs_req/1,handle_replicate_req/1,handle_restart_req/1, handle_uuids_req/1,handle_config_req/1,handle_log_req/1, handle_task_status_req/1,handle_sleep_req/1,handle_welcome_req/1, - handle_utils_dir_req/1]). + handle_utils_dir_req/1, handle_favicon_req/1]). -export([increment_update_seq_req/2]). @@ -57,6 +57,9 @@ get_version() -> end, list_to_binary(Version). +handle_favicon_req(Req) -> + handle_favicon_req(Req, couch_config:get("chttpd", "docroot")). + handle_favicon_req(#httpd{method='GET'}=Req, DocumentRoot) -> chttpd:serve_file(Req, "favicon.ico", DocumentRoot); handle_favicon_req(Req, _) -> |