From 69e1c581ba8a216331639cf54d4d71e24e55d78c Mon Sep 17 00:00:00 2001 From: JanLehnardt Date: Sat, 3 Feb 2007 12:17:54 +0000 Subject: [PATCH] no error on /favicon.ico request git-svn-id: http://couchdb.googlecode.com/svn/trunk@128 efc57d8c-411c-0410-91b3-cfdf4dd2bc77 --- CouchProjects/CouchDb/mod_couch.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CouchProjects/CouchDb/mod_couch.erl b/CouchProjects/CouchDb/mod_couch.erl index b7c1286..fa05165 100644 --- a/CouchProjects/CouchDb/mod_couch.erl +++ b/CouchProjects/CouchDb/mod_couch.erl @@ -41,7 +41,6 @@ -define(DOC_NAMESPACE, "http://couchdb.org/doc"). -define(TABLE_NAMESPACE, "http://couchdb.org/table"). - %% do. This is the main entry point into CouchDb from the HTTP server @@ -54,6 +53,11 @@ do(ModData) -> DocumentRoot = httpd_util:lookup(ModData#mod.config_db, document_root, ""), {Path, AfterPath} = httpd_util:split_path(DocumentRoot ++ "/" ++ RestURI), {proceed, [{real_name, {Path, AfterPath}} | ModData#mod.data]}; + "/favicon.ico" -> + DocumentRoot = httpd_util:lookup(ModData#mod.config_db, document_root, ""), + RealName = DocumentRoot ++ "/" ++ Uri, + {Path, AfterPath} = httpd_util:split_path(RealName), + {proceed, [{real_name, {Path, AfterPath}} | ModData#mod.data]}; _ -> couch_log:info("HTTP Request: ~s~nHeader:~p", [Request, Header]), couch_log:debug("Body:~P", [Body, 100]), -- 2.11.4.GIT