This commit is contained in:
Adam D. Ruppe 2015-12-04 17:22:12 -05:00
parent 646578792f
commit 85a447af31
1 changed files with 4 additions and 1 deletions

5
cgi.d
View File

@ -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) {