http headers usage and headers itself converted to lowercase, fixes #1296

This commit is contained in:
Martin Rotter 2024-02-21 13:15:36 +01:00
parent 45f676713a
commit eb6332cc5c
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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) {