aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-23 15:18:41 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-09-23 15:18:41 +0200
commitebec11dff1783023482a044a881aae5ebb020882 (patch)
treea44e51bc40b29b0964aad408c659c687fc9c3e47
parent1fc20c446fde454bbff690a17b0b89de5e127d96 (diff)
downloadbusybox-ebec11dff1783023482a044a881aae5ebb020882.tar.gz
wget: flush output to network before receving reply
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r--networking/wget.c2
1 files changed, 2 insertions, 0 deletions
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.
*/