From fd370355f45d99eef91cafb58d8b5926e6f722f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Wed, 12 Jun 2024 15:20:45 +0200 Subject: [PATCH] Network: Add a note about ReasonPhrase not being available in h2 It's always been like this, but the documentation never said so. See https://github.com/httpwg/http2-spec/issues/202 for why. Task-number: QTBUG-126278 Pick-to: 6.7 6.5 Change-Id: Ie83b105dd78fc1c6c09db46ae8cb5e113cd8a062 Reviewed-by: Mate Barany (cherry picked from commit 365a1ba7d9a3d731968cb053d5d0677c7a372e0f) Reviewed-by: Qt Cherry-pick Bot --- src/network/access/qnetworkrequest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network/access/qnetworkrequest.cpp b/src/network/access/qnetworkrequest.cpp index 0e1172b15c8..2fb467d3a85 100644 --- a/src/network/access/qnetworkrequest.cpp +++ b/src/network/access/qnetworkrequest.cpp @@ -144,7 +144,8 @@ QT_IMPL_METATYPE_EXTERN_TAGGED(QNetworkRequest::RedirectPolicy, QNetworkRequest_ server (like "Ok", "Found", "Not Found", "Access Denied", etc.) This is the human-readable representation of the status code (see above). If the connection was not HTTP-based, this - attribute will not be present. + attribute will not be present. \e{Note:} The reason phrase is + not used when using HTTP/2. \value RedirectionTargetAttribute Replies only, type: QMetaType::QUrl (no default)