From 68179f76053ee042a421dd4a1a27f3fbb185b475 Mon Sep 17 00:00:00 2001 From: Juha Vuolle Date: Thu, 8 Feb 2024 09:16:08 +0200 Subject: [PATCH] Change type of internal locationHeader constexpr to QL1SV QL1SV is what QNetworkReply::rawHeader() ingests, and also it's what QHttpHeaders::nameAt() returns. Pick-to: 6.7 Change-Id: I967416cf6f203fe0f0980ef7eae2de7efc6d5377 Reviewed-by: Marc Mutz --- src/network/access/qnetworkreplyhttpimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/access/qnetworkreplyhttpimpl.cpp b/src/network/access/qnetworkreplyhttpimpl.cpp index 26c0926c7f4..acb91643722 100644 --- a/src/network/access/qnetworkreplyhttpimpl.cpp +++ b/src/network/access/qnetworkreplyhttpimpl.cpp @@ -1303,7 +1303,7 @@ void QNetworkReplyHttpImplPrivate::followRedirect() q, [this]() { postRequest(redirectRequest); }, Qt::QueuedConnection); } -static constexpr QByteArrayView locationHeader() noexcept { return "location"; } +static constexpr QLatin1StringView locationHeader() noexcept { return "location"_L1; } void QNetworkReplyHttpImplPrivate::checkForRedirect(const int statusCode) {