mirror of https://github.com/adamdruppe/arsd.git
osx fix
This commit is contained in:
parent
646578792f
commit
85a447af31
5
cgi.d
5
cgi.d
|
@ -147,7 +147,7 @@
|
||||||
module arsd.cgi;
|
module arsd.cgi;
|
||||||
|
|
||||||
version(embedded_httpd) {
|
version(embedded_httpd) {
|
||||||
version(Posix)
|
version(linux)
|
||||||
version=embedded_httpd_processes;
|
version=embedded_httpd_processes;
|
||||||
else
|
else
|
||||||
version=embedded_httpd_threads;
|
version=embedded_httpd_threads;
|
||||||
|
@ -3765,6 +3765,8 @@ version(cgi_with_websocket) {
|
||||||
cgi.websocketMode = true;
|
cgi.websocketMode = true;
|
||||||
cgi.write("");
|
cgi.write("");
|
||||||
|
|
||||||
|
cgi.flush();
|
||||||
|
|
||||||
return new WebSocket(cgi);
|
return new WebSocket(cgi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3878,6 +3880,7 @@ version(cgi_with_websocket) {
|
||||||
//writeln("SENDING ", headerScratch[0 .. headerScratchPos], data);
|
//writeln("SENDING ", headerScratch[0 .. headerScratchPos], data);
|
||||||
cgi.write(headerScratch[0 .. headerScratchPos]);
|
cgi.write(headerScratch[0 .. headerScratchPos]);
|
||||||
cgi.write(data);
|
cgi.write(data);
|
||||||
|
cgi.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
static WebSocketMessage read(ubyte[] d) {
|
static WebSocketMessage read(ubyte[] d) {
|
||||||
|
|
Loading…
Reference in New Issue