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>
This commit is contained in:
Nguyễn Thái Ngọc Duy 2010-09-23 15:18:41 +02:00 committed by Denys Vlasenko
parent 1fc20c446f
commit ebec11dff1

View File

@ -737,6 +737,8 @@ int wget_main(int argc UNUSED_PARAM, char **argv)
fprintf(sfp, /* "Connection: close\r\n" */ "\r\n"); fprintf(sfp, /* "Connection: close\r\n" */ "\r\n");
} }
fflush(sfp);
/* /*
* Retrieve HTTP response line and check for "200" status code. * Retrieve HTTP response line and check for "200" status code.
*/ */