]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.c
404 all broken Microsoft /_vti_* crap
[citadel.git] / webcit / webcit.c
index f278f50b38800e86fd6d2b86ea7b5a5bdc75ae8f..85ee1ca4ba9e28af897fcee0279dcaf1dc18074d 100644 (file)
@@ -1184,6 +1184,14 @@ void session_loop(struct httprequest *req)
                }
        }
 
+       /** If it's a "force 404" situation then display the error and bail. */
+       if (!strcmp(action, "404")) {
+               wprintf("HTTP/1.1 404 Not found\r\n");
+               wprintf("Content-Type: text/plain\r\n");
+               wprintf("\r\n");
+               wprintf("Not found\r\n");
+               goto SKIP_ALL_THIS_CRAP;
+       }
 
        /** Static content can be sent without connecting to Citadel. */
        is_static = 0;