diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-23 17:18:41 +0400 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-23 17:18:41 +0400 |
commit | ebec11dff1783023482a044a881aae5ebb020882 (patch) | |
tree | a44e51bc40b29b0964aad408c659c687fc9c3e47 /networking | |
parent | 1fc20c446fde454bbff690a17b0b89de5e127d96 (diff) |
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.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) fprintf(sfp, /* "Connection: close\r\n" */ "\r\n"); } + fflush(sfp); + /* * Retrieve HTTP response line and check for "200" status code. */ |