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