]> code.citadel.org Git - citadel.git/commitdiff
* Some of the 'security check failed' errors need an extra newline between the header...
authorArt Cancro <ajc@citadel.org>
Wed, 7 Jan 2009 16:10:19 +0000 (16:10 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 7 Jan 2009 16:10:19 +0000 (16:10 +0000)
webcit/webcit.c

index 05a966fab7984420f791b98a03deb38a38ad01d7..14c95628a47ac74c807a351b8c2285d4631a9c04 100644 (file)
@@ -757,7 +757,7 @@ void session_loop(HashList *HTTPHeaders, StrBuf *ReqLine, StrBuf *request_method
                {
                        lprintf(9, "Suspicious request. Ignoring.");
                        hprintf("HTTP/1.1 404 Security check failed\r\n");
-                       hprintf("Content-Type: text/plain\r\n");
+                       hprintf("Content-Type: text/plain\r\n\r\n");
                        wprintf("You have sent a malformed or invalid request.\r\n");
                        end_burst();
                }
@@ -771,7 +771,7 @@ void session_loop(HashList *HTTPHeaders, StrBuf *ReqLine, StrBuf *request_method
                if (ibstr("nonce") != WCC->nonce) {
                        lprintf(9, "Ignoring request with mismatched nonce.\n");
                        hprintf("HTTP/1.1 404 Security check failed\r\n");
-                       hprintf("Content-Type: text/plain\r\n");
+                       hprintf("Content-Type: text/plain\r\n\r\n");
                        wprintf("Security check failed.\r\n");
                        end_burst();
                        goto SKIP_ALL_THIS_CRAP;