mirror of https://github.com/adamdruppe/arsd.git
caddy scgi is picky about this arguably in violation of the spec which says it is optional but meh
This commit is contained in:
parent
d451542fde
commit
53bfbdc399
3
cgi.d
3
cgi.d
|
|
@ -2571,6 +2571,8 @@ class Cgi {
|
||||||
buffer.add("HTTP/1.0 200 OK", terminator);
|
buffer.add("HTTP/1.0 200 OK", terminator);
|
||||||
else
|
else
|
||||||
buffer.add("HTTP/1.1 200 OK", terminator);
|
buffer.add("HTTP/1.1 200 OK", terminator);
|
||||||
|
} else {
|
||||||
|
buffer.add("Status: ", "200 OK", terminator);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(websocketMode)
|
if(websocketMode)
|
||||||
|
|
@ -5523,7 +5525,6 @@ void doThreadScgiConnection(CustomCgi, alias fun, long maxContentLength)(Socket
|
||||||
fun(cgi);
|
fun(cgi);
|
||||||
cgi.close();
|
cgi.close();
|
||||||
connection.close();
|
connection.close();
|
||||||
|
|
||||||
} catch(AuthorizationRequiredException are) {
|
} catch(AuthorizationRequiredException are) {
|
||||||
cgi.setResponseStatus("401 Authorization Required");
|
cgi.setResponseStatus("401 Authorization Required");
|
||||||
cgi.header ("WWW-Authenticate: "~are.type~" realm=\""~are.realm~"\"");
|
cgi.header ("WWW-Authenticate: "~are.type~" realm=\""~are.realm~"\"");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue