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
tiptorrent development team 2021-12-23 18:10:04 +01:00
parent 6e55df90e4
commit e15e2364f7
1 changed files with 0 additions and 3 deletions

View File

@ -212,9 +212,6 @@ static int tip_client_get_hdr(struct tip_client *cli)
} }
} }
if (payload_len >= cli->content_len)
return 0;
return 1; return 1;
} }