]> code.citadel.org Git - citadel.git/blobdiff - webcit/context_loop.c
* Put the /favicon.ico --> /static/favicon.ico hack back in. Why not?
[citadel.git] / webcit / context_loop.c
index e6842f9ce63a745de65641f70a44644b7e2b68b5..5d01bf297ec5ed5bd0d6f359812cc617ebde736e 100644 (file)
@@ -309,12 +309,15 @@ void context_loop(int sock)
 
        /*
         * While we're at it, gracefully handle requests for the
-        * robots.txt file...
+        * robots.txt and favicon.ico files.
         */
        if (!strncasecmp(buf, "/robots.txt", 11)) {
                strcpy(req->line, "GET /static/robots.txt"
                                "?force_close_session=yes HTTP/1.0");
        }
+       if (!strncasecmp(buf, "/favicon.ico", 12)) {
+               strcpy(req->line, "GET /static/favicon.ico");
+       }
 
        /* These are the URL's which may be executed without a
         * session cookie already set.  If it's not one of these,