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:
parent
1fc20c446f
commit
ebec11dff1
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user