From f56fbd7477a165d748ab83d196d6c137e6c5ff2e Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 17 Jul 2012 12:35:19 -0500 Subject: [PATCH] handle server push --- CHANGES | 8 ++++++++ cgi.c | 3 +++ 2 files changed, 11 insertions(+) diff --git a/CHANGES b/CHANGES index d56b0cf..3ee08d9 100644 --- a/CHANGES +++ b/CHANGES @@ -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: More or less a ground-up rewrite. A few fnord parts remain here and there. diff --git a/cgi.c b/cgi.c index 0198374..8cd6249 100644 --- a/cgi.c +++ b/cgi.c @@ -83,6 +83,9 @@ cgi_parent(int cin, int cout, int passthru) break; } fwrite(cgiheader, 1, len, stdout); + + /* Naively assume the CGI knows best about sending stuff */ + fflush(stdout); size += len; } else { /* Interpret header fields */