http headers usage and headers itself converted to lowercase, fixes #1296
This commit is contained in:
parent
45f676713a
commit
eb6332cc5c
@ -239,7 +239,7 @@ void Downloader::finished() {
|
||||
m_lastHeaders.clear();
|
||||
|
||||
for (const QNetworkReply::RawHeaderPair& head : reply->rawHeaderPairs()) {
|
||||
m_lastHeaders.insert(head.first, head.second);
|
||||
m_lastHeaders.insert(QString::fromLocal8Bit(head.first).toLower(), head.second);
|
||||
}
|
||||
|
||||
// original_url = m_activeReply->property("original_url").toUrl();
|
||||
|
@ -231,7 +231,7 @@ QList<Message> StandardServiceRoot::obtainNewMessages(Feed* feed,
|
||||
NetworkFactory::networkErrorText(network_result.m_networkError));
|
||||
}
|
||||
else {
|
||||
f->setLastEtag(network_result.m_headers.value(QSL("ETag")));
|
||||
f->setLastEtag(network_result.m_headers.value(QSL("etag")));
|
||||
}
|
||||
}
|
||||
else if (f->sourceType() == StandardFeed::SourceType::LocalFile) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user