From 1a92e511e178a2be3d2c66479bd0b6fa113f26da Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Sat, 18 Sep 2010 08:55:52 +1000 Subject: wget: flush HTTP request before receving reply --- networking/wget.c | 2 ++ 1 file changed, 2 insertions(+) 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. */ -- cgit v1.2.3-55-g6feb