From: Nguyễn Thái Ngọc Duy Date: Thu, 23 Sep 2010 13:18:41 +0000 (+0200) Subject: wget: flush output to network before receving reply X-Git-Tag: 1_18_0~193 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ebec11dff1783023482a044a881aae5ebb020882;p=oweals%2Fbusybox.git wget: flush output to network before receving reply Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Denys Vlasenko --- 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. */