Skip to content

Commit

Permalink
Make extraction of ETag header independent of capitalisation.
Browse files Browse the repository at this point in the history
Fixes #7703.

Signed-off-by: Joshua Noeske <git@joshuanoeske.de>
  • Loading branch information
PatrickJosh committed Jan 4, 2025
1 parent 5af3c88 commit 4745cbd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libsync/networkjobs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,10 @@ bool JsonApiJob::finished()
}

// save new ETag value
if(reply()->rawHeaderList().contains("ETag"))
emit etagResponseHeaderReceived(reply()->rawHeader("ETag"), statusCode);
auto etagHeader = reply()->header(QNetworkRequest::ETagHeader);
if (etagHeader.isValid()) {
emit etagResponseHeaderReceived(etagHeader.toByteArray(), statusCode);
}

QJsonParseError error{};
auto json = QJsonDocument::fromJson(jsonStr.toUtf8(), &error);
Expand Down

0 comments on commit 4745cbd

Please sign in to comment.