From 46f4d80c4c40559a383d001838d766b2b438f4f0 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 9 Oct 2025 17:14:56 +0000 Subject: Move string cmp operations to skalibs. Add cgit-nollmcrawler. --- 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 d5daf56..14c6de8 100644 --- a/src/tipideed/cgi.c +++ b/src/tipideed/cgi.c @@ -320,7 +320,7 @@ static inline int do_cgi (tipidee_rql *rql, char const *docroot, char const *con else { if (!status) status = 200 ; - if (status != 304 && !tipidee_headers_search(&hdr, "Content-Type")) + if (status != 304 && (status < 400 || status > 599) && !tipidee_headers_search(&hdr, "Content-Type")) die502x(rql, 2, docroot, "cgi ", argv[0], " didn't output a ", "Content-Type", " header") ; } -- cgit v1.3.1