mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Revise Utils::Gzip::decompress
Rename from uncompress to decompress Change signature Use proper casting Use larger buffer for the output of inflate() Reserve 1 MBytes for output buffer Change function signature
This commit is contained in:
parent
302c8ba850
commit
617f19e599
4 changed files with 44 additions and 40 deletions
|
@ -92,8 +92,8 @@ void DownloadHandler::processFinishedDownload()
|
|||
// Success
|
||||
QByteArray replyData = m_reply->readAll();
|
||||
if (m_reply->rawHeader("Content-Encoding") == "gzip") {
|
||||
// uncompress gzip reply
|
||||
Utils::Gzip::uncompress(replyData, replyData);
|
||||
// decompress gzip reply
|
||||
replyData = Utils::Gzip::decompress(replyData);
|
||||
}
|
||||
|
||||
if (m_saveToFile) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue