X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/d16be832996ef8a2844df3f7c91afe58cc7a46fb..0e2b222fc14b8f890fab644118cf0f43abbe450a:/lib/t-cgi.c diff --git a/lib/t-cgi.c b/lib/t-cgi.c index a3b9f37..de44fcb 100644 --- a/lib/t-cgi.c +++ b/lib/t-cgi.c @@ -24,7 +24,10 @@ static void input_from(const char *s) { FILE *fp = tmpfile(); char buffer[64]; - if(fputs(s, fp) < 0 || fflush(fp) < 0) + if(fputs(s, fp) < 0 + || fputs("wibble wibble\r\nspong", fp) < 0 /* ensure CONTENT_LENGTH + * honored */ + || fflush(fp) < 0) fatal(errno, "writing to temporary file"); rewind(fp); xdup2(fileno(fp), 0);