aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-18 08:55:52 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-20 17:51:17 +1000
commit1a92e511e178a2be3d2c66479bd0b6fa113f26da (patch)
tree54298290119b982e61c2690dc4e9efb10df9ec63
parentd57f58814a25264aeab875a501d3eeeca12fd3f8 (diff)
downloadbusybox-w32-1a92e511e178a2be3d2c66479bd0b6fa113f26da.tar.gz
busybox-w32-1a92e511e178a2be3d2c66479bd0b6fa113f26da.tar.bz2
busybox-w32-1a92e511e178a2be3d2c66479bd0b6fa113f26da.zip
wget: flush HTTP request before receving reply
-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)
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 */