summaryrefslogtreecommitdiff
path: root/src/chttpd_misc.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-06-09 16:33:33 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 11:18:44 -0400
commit056d208ad378fbb1416e79db317ed89d07bf2af6 (patch)
tree2ad32c108a68e6e6ba76ae348354ddf115a1c4d6 /src/chttpd_misc.erl
parent49cf1370b6b46b79f93b09868272d1ffec0a2879 (diff)
_all_docs served over http via fabric, woot
Diffstat (limited to 'src/chttpd_misc.erl')
-rw-r--r--src/chttpd_misc.erl5
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, _) ->