diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/ChangeLog | 5 | ||||
-rw-r--r-- | util/http.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index c91c3d9d0..6d34f4c4a 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,8 @@ +2001-05-05 Werner Koch <[email protected]> + + * http.c (http_start_data): Flush before writing. + (http_wait_response): No need to flush here. + 2001-04-27 Werner Koch <[email protected]> * memory.c (out_of_core): Print an explanation on reasons why diff --git a/util/http.c b/util/http.c index f3429c5db..c1ab6371c 100644 --- a/util/http.c +++ b/util/http.c @@ -149,6 +149,7 @@ http_open( HTTP_HD hd, HTTP_REQ_TYPE reqtype, const char *url, void http_start_data( HTTP_HD hd ) { + iobuf_flush ( hd->fp_write ); if( !hd->in_data ) { write_server (hd->sock, "\r\n", 2); hd->in_data = 1; @@ -162,7 +163,6 @@ http_wait_response( HTTP_HD hd, unsigned int *ret_status ) int rc; http_start_data( hd ); /* make sure that we are in the data */ - iobuf_flush( hd->fp_write ); #if 0 hd->sock = dup( hd->sock ); |