Hi,
I'm using QtWebKit based browser running on Intel Canmore SoC.
In one of our tests we've discovered that loading www.weather.com takes forever. I compared it to Arora browser on an Ubuntu laptop and had similar load time.
After some investigating, I added the bolded line below to a QNetworkAccessManager wrapper class (called NetworkAccessManager).
The line was added in the createRequest overloaded function and seems to have fixed the issue.
Has anyone had similar problems before and if so, is there any way to reduce the time it takes to load a gzipped reply?
QNetworkReply *NetworkAccessManager::createRequest(Operation op,
const QNetworkRequest &request,
{
QNetworkRequest req = request; // copy so we can modify
req.setRawHeader("Accept-Encoding", "identity");//<- bold line
QNetworkReply *reply = QNetworkAccessManager::createRequest(op, req, outgoingData);
}
QNetworkReply *NetworkAccessManager::createRequest(Operation op,
const QNetworkRequest &request,
QIODevice *outgoingData)
{
QNetworkRequest req = request; // copy so we can modify
req.setRawHeader("Accept-Encoding", "identity");//<- bold line
QNetworkReply *reply = QNetworkAccessManager::createRequest(op, req, outgoingData);
}
To copy to clipboard, switch view to plain text mode
--shay
Bookmarks