another musl try

This commit is contained in:
Adam D. Ruppe 2019-10-06 12:28:58 -04:00
parent aa45fe8f54
commit 8fcaa90825
1 changed files with 15 additions and 4 deletions

19
cgi.d
View File

@ -2104,13 +2104,24 @@ class Cgi {
foreach(h; hd) {
if(rawDataOutput !is null)
rawDataOutput(cast(const(ubyte)[]) (h ~ "\r\n"));
else
writeln(h);
else {
version(CRuntime_Musl) {
stdout.rawWrite(h);
stdout.rawWrite("\n");
} else {
writeln(h);
}
}
}
if(rawDataOutput !is null)
rawDataOutput(cast(const(ubyte)[]) ("\r\n"));
else
writeln("");
else {
version(CRuntime_Musl) {
stdout.rawWrite("\n");
} else {
writeln("");
}
}
outputtedResponseData = true;
}