handle server push

This commit is contained in:
Neale Pickett 2012-07-17 12:35:19 -05:00
parent 6af696b8ec
commit f56fbd7477
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,11 @@
3.1d:
Add -. flag to disable vhosting
Support server push CGI
Handle busybox tcpsvd
Changed formatting of directory indexing
Handle read timeout
Fix if-modified-since bug with keepalive connections
3.0: 3.0:
More or less a ground-up rewrite. A few fnord parts remain More or less a ground-up rewrite. A few fnord parts remain
here and there. here and there.

3
cgi.c
View File

@ -83,6 +83,9 @@ cgi_parent(int cin, int cout, int passthru)
break; break;
} }
fwrite(cgiheader, 1, len, stdout); fwrite(cgiheader, 1, len, stdout);
/* Naively assume the CGI knows best about sending stuff */
fflush(stdout);
size += len; size += len;
} else { } else {
/* Interpret header fields */ /* Interpret header fields */