diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-23 15:18:41 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-23 15:18:41 +0200 |
commit | ebec11dff1783023482a044a881aae5ebb020882 (patch) | |
tree | a44e51bc40b29b0964aad408c659c687fc9c3e47 /networking/wget.c | |
parent | 1fc20c446fde454bbff690a17b0b89de5e127d96 (diff) | |
download | busybox-w32-ebec11dff1783023482a044a881aae5ebb020882.tar.gz busybox-w32-ebec11dff1783023482a044a881aae5ebb020882.tar.bz2 busybox-w32-ebec11dff1783023482a044a881aae5ebb020882.zip |
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/wget.c')
-rw-r--r-- | networking/wget.c | 2 |
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) | |||
737 | fprintf(sfp, /* "Connection: close\r\n" */ "\r\n"); | 737 | fprintf(sfp, /* "Connection: close\r\n" */ "\r\n"); |
738 | } | 738 | } |
739 | 739 | ||
740 | fflush(sfp); | ||
741 | |||
740 | /* | 742 | /* |
741 | * Retrieve HTTP response line and check for "200" status code. | 743 | * Retrieve HTTP response line and check for "200" status code. |
742 | */ | 744 | */ |