[PATCH] wget: flush HTTP request before receving reply
Denys Vlasenko
vda.linux at googlemail.com
Thu Sep 23 13:19:30 UTC 2010
2010/9/20 Nguyễn Thái Ngọc Duy <pclouds at gmail.com>:
>
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds at gmail.com>
> ---
> networking/wget.c | 2 ++
> 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.
> */
> --
> 1.7.1.rc1.70.g788ca
Applied, thanks!
--
vda
More information about the busybox
mailing list