From c1ccfe15831a6e61e0e8e36a41ce8d8e6796153c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 26 Oct 2023 09:14:12 +0000 Subject: Some bugfixes, more to come Thanks jjk for the bug-reports! Signed-off-by: Laurent Bercot --- src/tipideed/cgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tipideed/cgi.c') diff --git a/src/tipideed/cgi.c b/src/tipideed/cgi.c index be969c8..037076d 100644 --- a/src/tipideed/cgi.c +++ b/src/tipideed/cgi.c @@ -309,7 +309,7 @@ static inline int process_cgi_output (tipidee_rql *rql, char const *docroot, tip else { if (!status) status = 200 ; - if (!tipidee_headers_search(hdr, "Content-Type")) + if (status != 304 && !tipidee_headers_search(hdr, "Content-Type")) die502x(rql, 2, docroot, "cgi ", cginame, " didn't output a ", "Content-Type", " header") ; } x = tipidee_headers_search(hdr, "Content-Length") ; -- cgit v1.3.1