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 <marc.mutz@qt.io>
This commit is contained in:
Juha Vuolle 2024-02-08 09:16:08 +02:00
parent 7288db6083
commit 68179f7605

View File

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