mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Enable gzip compression in the webui.
This commit is contained in:
@@ -158,3 +158,12 @@ Submit Query
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool HttpRequestParser::acceptsEncoding() {
|
||||
QString encoding = m_header.value("Accept-Encoding");
|
||||
|
||||
if (!encoding.isEmpty() && encoding.contains("gzip", Qt::CaseInsensitive))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user