Skip to content

Commit

Permalink
http headers usage and headers itself converted to lowercase, fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Feb 21, 2024
1 parent 45f6767 commit eb6332c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librssguard/network-web/downloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/librssguard/services/standard/standardserviceroot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit eb6332c

Please sign in to comment.