From 53bfbdc399d01bc1d52e5b913f451d429e0d15ba Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sun, 12 Oct 2025 10:58:43 -0400 Subject: [PATCH] caddy scgi is picky about this arguably in violation of the spec which says it is optional but meh --- cgi.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgi.d b/cgi.d index 03ca2e7..bc66b64 100644 --- a/cgi.d +++ b/cgi.d @@ -2571,6 +2571,8 @@ class Cgi { buffer.add("HTTP/1.0 200 OK", terminator); else buffer.add("HTTP/1.1 200 OK", terminator); + } else { + buffer.add("Status: ", "200 OK", terminator); } if(websocketMode) @@ -5523,7 +5525,6 @@ void doThreadScgiConnection(CustomCgi, alias fun, long maxContentLength)(Socket fun(cgi); cgi.close(); connection.close(); - } catch(AuthorizationRequiredException are) { cgi.setResponseStatus("401 Authorization Required"); cgi.header ("WWW-Authenticate: "~are.type~" realm=\""~are.realm~"\"");