From kde-commits Fri Apr 20 20:35:51 2007 From: Helio Chissini de Castro Date: Fri, 20 Apr 2007 20:35:51 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/kioslave/http Message-Id: <1177101351.543636.16845.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117710612611188 SVN commit 656272 by helio: - Added exception fro ps.gz. Old patch by Laurent Montel with small modification M +9 -0 http.cc --- branches/KDE/3.5/kdelibs/kioslave/http/http.cc #656271:656272 @@ -3670,6 +3670,15 @@ m_qContentEncodings.remove(m_qContentEncodings.fromLast()); m_strMimeType = QString::fromLatin1("application/x-gzpostscript"); } + else if ( m_request.allowCompressedPage && + m_strMimeType != "application/x-tgz" && + m_strMimeType != "application/x-targz" && + m_strMimeType != "application/x-gzip" && + m_request.url.path().right(6) == ".ps.gz" ) + { + m_qContentEncodings.remove(m_qContentEncodings.fromLast()); + m_strMimeType = QString::fromLatin1("application/x-gzpostscript"); + } else if ( (m_request.allowCompressedPage && m_strMimeType == "text/html") ||