BUGFIX: Improved HTTP gzip compression detection in downloader

This commit is contained in:
Christophe Dumez
2010-02-10 20:07:00 +00:00
parent dd51d39f5b
commit c267f6911d
3 changed files with 5 additions and 4 deletions

View File

@@ -103,6 +103,7 @@ void downloadThread::downloadUrl(QString url){
// Spoof Firefox 3.5 user agent to avoid
// Web server banning
request.setRawHeader("User-Agent", "Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5");
request.setRawHeader("Accept-Encoding", "");
qDebug("Downloading %s...", request.url().toString().toLocal8Bit().data());
networkManager->get(request);
}