]> code.citadel.org Git - citadel.git/blobdiff - webcit/static.c
Revert "No more robots.txt, we now welcome spiders"
[citadel.git] / webcit / static.c
index 70f3cd36b4562213cdfd5b10a8f4daed29ad9771..46770bf1220de5bec6d05e2d02b291bc66262715 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id: webcit.c 7459 2009-05-17 08:34:33Z dothebart $
- *
  * This is the main transaction loop of the web service.  It maintains a
  * persistent session to the Citadel server, handling HTTP WebCit requests as
  * they arrive and presenting a user interface.
@@ -225,6 +223,8 @@ void output_flat_static(void)
        void *vFile;
        StrBuf *File;
 
+       if (WCC->Hdr->HR.Handler == NULL)
+               return;
        if (GetHash(StaticFilemappings[0], SKEY(WCC->Hdr->HR.Handler->Name), &vFile) &&
            (vFile != NULL))
        {