Commit 93386f44 authored by Dawit Alemayehu's avatar Dawit Alemayehu
Browse files

Behave like all other browsers when a server responds with a gzip encoded

content and appends the content's filename with ".gz".

BUG: 238303
FIXED-IN: 4.8.1
parent 252e5278
......@@ -2843,8 +2843,7 @@ void HTTPProtocol::fixupResponseContentEncoding()
m_mimeType != QLatin1String("application/x-compressed-tar") &&
m_mimeType != QLatin1String("application/x-tgz") && // deprecated name
m_mimeType != QLatin1String("application/x-targz") && // deprecated name
m_mimeType != QLatin1String("application/x-gzip") &&
!m_request.url.path().endsWith(QLatin1String(".gz")))) {
m_mimeType != QLatin1String("application/x-gzip"))) {
// Unzip!
} else {
m_contentEncodings.removeLast();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment