diff options
Diffstat (limited to 'src/network/access/http2/http2protocol.cpp')
-rw-r--r-- | src/network/access/http2/http2protocol.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/access/http2/http2protocol.cpp b/src/network/access/http2/http2protocol.cpp index f51af4be5c..0be72042c6 100644 --- a/src/network/access/http2/http2protocol.cpp +++ b/src/network/access/http2/http2protocol.cpp @@ -287,7 +287,8 @@ bool is_protocol_upgraded(const QHttpNetworkReply &reply) // Do some minimal checks here - we expect 'Upgrade: h2c' to be found. const auto &header = reply.header(); for (const QPair<QByteArray, QByteArray> &field : header) { - if (field.first.toLower() == "upgrade" && field.second.toLower() == "h2c") + if (field.first.compare("upgrade", Qt::CaseInsensitive) == 0 && + field.second.compare("h2c", Qt::CaseInsensitive) == 0) return true; } } |