From 227e2b280ebb6f2101c75d47544e50366f41bd3e Mon Sep 17 00:00:00 2001 From: Flavio Date: Wed, 26 Jan 2011 01:08:52 +0100 Subject: [PATCH] Supersticious change in user agent and keep-alive header --- src/networkaccess.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/networkaccess.cpp b/src/networkaccess.cpp index 4c4058e..36d4ae6 100644 --- a/src/networkaccess.cpp +++ b/src/networkaccess.cpp @@ -12,7 +12,7 @@ const QString USER_AGENT = QString(Constants::APP_NAME) + " (" + Constants::WEBSITE + ")"; */ -const QString USER_AGENT = "Mozilla/5.0 (X11; U; Linux x86; en-US; rv:1.9.2.12) Gecko/20101028 Firefox/3.6.12"; +const QString USER_AGENT = "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10"; NetworkReply::NetworkReply(QNetworkReply *networkReply) : QObject(networkReply) { this->networkReply = networkReply; @@ -95,7 +95,7 @@ QNetworkReply* NetworkAccess::simpleGet(QUrl url, int operation) { request.setRawHeader("Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.7"); request.setRawHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"); request.setRawHeader("Accept-Language", "en-us,en;q=0.5"); - // request.setRawHeader("Connection", "Keep-Alive"); + request.setRawHeader("Connection", "Keep-Alive"); return manualGet(request, operation); } -- 2.39.5