From ebec11dff1783023482a044a881aae5ebb020882 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nguy=E1=BB=85n=20Th=C3=A1i=20Ng=E1=BB=8Dc=20Duy?= Date: Thu, 23 Sep 2010 15:18:41 +0200 Subject: [PATCH] wget: flush output to network before receving reply MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Denys Vlasenko --- networking/wget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/networking/wget.c b/networking/wget.c index 88bb09eb2..4521abfcf 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -737,6 +737,8 @@ int wget_main(int argc UNUSED_PARAM, char **argv) fprintf(sfp, /* "Connection: close\r\n" */ "\r\n"); } + fflush(sfp); + /* * Retrieve HTTP response line and check for "200" status code. */ -- 2.25.1