fix download of very small files
If the first recv() call fully gets the HTTP header and the file chunk, then tip_client_get_hdr() returns 1 to enter the TIP_CLIENT_DONE state to finish.master
parent
6e55df90e4
commit
e15e2364f7
|
@ -212,9 +212,6 @@ static int tip_client_get_hdr(struct tip_client *cli)
|
|||
}
|
||||
}
|
||||
|
||||
if (payload_len >= cli->content_len)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue