* Put the /favicon.ico --> /static/favicon.ico hack back in. Why not?
authorArt Cancro <ajc@citadel.org>
Thu, 26 Feb 2004 03:07:26 +0000 (03:07 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 26 Feb 2004 03:07:26 +0000 (03:07 +0000)
webcit/ChangeLog
webcit/README.txt
webcit/context_loop.c

index 5ad9a91652edacdac243468540eb8a498e8a44b3..ea4689abd4bac57fc5b287edfe75c59521f6add2 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 505.6  2004/02/26 03:07:26  ajc
+* Put the /favicon.ico --> /static/favicon.ico hack back in.  Why not?
+
 Revision 505.5  2004/02/25 23:10:28  ajc
 * Allow "/do_logout" as a no-frames page
 
@@ -1681,4 +1684,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index f9b164e0af6fb35c726a1e9aa1fb34a15e65471b..0d9a2b72d4c1e5c224d3efa0a612d7c29efc4ff7 100644 (file)
@@ -122,6 +122,9 @@ ones which you may be interested in are:
  -> hello.gif: your system's logo.  It is displayed along with the logon
     banner, and on the top left corner of each page.
  
+ If you would like to deploy a "favicon.ico" graphic, please put it in
+the static/ directory.  WebCit will properly serve it from there.
  
  CALENDAR SERVICE
  ----------------
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,