about summary refs log tree commit homepage
path: root/httpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.h')
-rw-r--r--httpd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/httpd.h b/httpd.h
index eddea97..a59c9dd 100644
--- a/httpd.h
+++ b/httpd.h
@@ -310,6 +310,7 @@ static enum mw_qev h1_404(struct mw_h1 *h1)
         static const char r404[] = "HTTP/1.1 404 Not Found\r\n"
                 "Content-Type: text/html\r\n"
                 "Content-Length: 10\r\n\r\n" "Not Found\n";
+        if (h1->has_input) h1->persist = 0;
         return h1_res_oneshot(h1, r404, sizeof(r404) - 1);
 }