engine: common: net_http: fix decompression for compressed but not chunked files
This commit is contained in:
parent
34322f025b
commit
b2d8239829
1 changed files with 10 additions and 1 deletions
|
@ -844,7 +844,16 @@ static int HTTP_FileProcessStream( httpfile_t *curfile )
|
|||
|
||||
if( curfile->downloaded >= curfile->size )
|
||||
{
|
||||
HTTP_FreeFile( curfile, false ); // success
|
||||
// chunked files are finalized in FileSaveReceivedData
|
||||
if( curfile->compressed && !curfile->chunked )
|
||||
{
|
||||
curfile->pfn_process = HTTP_FileDecompress;
|
||||
curfile->success = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
HTTP_FreeFile( curfile, false ); // success
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue