Fossil SCM
Be sure to flush g.httpOut at the end of cgi_reply().
Commit
2cd0c7657f2fea54ec0d785ada1e6aebb681f349
Parent
35ecc92b69f7d0a…
1 file changed
+1
+1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -353,10 +353,11 @@ | ||
| 353 | 353 | if( size>0 ){ |
| 354 | 354 | fwrite(blob_buffer(&cgiContent[i]), 1, size, g.httpOut); |
| 355 | 355 | } |
| 356 | 356 | } |
| 357 | 357 | } |
| 358 | + fflush(g.httpOut); | |
| 358 | 359 | CGIDEBUG(("DONE\n")); |
| 359 | 360 | } |
| 360 | 361 | |
| 361 | 362 | /* |
| 362 | 363 | ** Do a redirect request to the URL given in the argument. |
| 363 | 364 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -353,10 +353,11 @@ | |
| 353 | if( size>0 ){ |
| 354 | fwrite(blob_buffer(&cgiContent[i]), 1, size, g.httpOut); |
| 355 | } |
| 356 | } |
| 357 | } |
| 358 | CGIDEBUG(("DONE\n")); |
| 359 | } |
| 360 | |
| 361 | /* |
| 362 | ** Do a redirect request to the URL given in the argument. |
| 363 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -353,10 +353,11 @@ | |
| 353 | if( size>0 ){ |
| 354 | fwrite(blob_buffer(&cgiContent[i]), 1, size, g.httpOut); |
| 355 | } |
| 356 | } |
| 357 | } |
| 358 | fflush(g.httpOut); |
| 359 | CGIDEBUG(("DONE\n")); |
| 360 | } |
| 361 | |
| 362 | /* |
| 363 | ** Do a redirect request to the URL given in the argument. |
| 364 |