summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy2010-09-23 15:18:41 +0200
committerDenys Vlasenko2010-09-23 15:18:41 +0200
commitebec11dff1783023482a044a881aae5ebb020882 (patch)
treea44e51bc40b29b0964aad408c659c687fc9c3e47 /networking
parent1fc20c446fde454bbff690a17b0b89de5e127d96 (diff)
downloadbusybox-ebec11dff1783023482a044a881aae5ebb020882.zip
busybox-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>
Diffstat (limited to 'networking')
-rw-r--r--networking/wget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 88bb09e..4521abf 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.
*/