X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/d16be832996ef8a2844df3f7c91afe58cc7a46fb..d77d85a66a090304db2359fef1ad7de1707121b4:/lib/t-cgi.c?ds=sidebyside 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);