summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkrequest.cpp
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-08-06 12:52:17 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2020-09-10 18:28:43 +0200
commit8a3847aab94577981593b9dd900fbd306b202ab6 (patch)
tree03bfe9a3b9e60d3c3b589cc1bca74961e7640bdd /src/network/access/qnetworkrequest.cpp
parent00d9a0ea8e0796a4ebf19ea15550d66adcf1af86 (diff)
QNAM: Enable HTTP/2 by default
It has been in Qt for some years now and 6.0 marks a good point to enable it by default. The exception is connectToHostEncrypted where we still require the users to enable it explicitly since there's no logical way to disable it. [ChangeLog][QtNetwork][QNetworkAccessManager] HTTP/2 is now enabled by default. Fixes: QTBUG-85902 Change-Id: Ia029a045727cc593d77df9eb3a5888522ad19199 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/network/access/qnetworkrequest.cpp')
-rw-r--r--src/network/access/qnetworkrequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkrequest.cpp b/src/network/access/qnetworkrequest.cpp
index 03a7f0b176..a1e17834c0 100644
--- a/src/network/access/qnetworkrequest.cpp
+++ b/src/network/access/qnetworkrequest.cpp
@@ -269,7 +269,7 @@ QT_BEGIN_NAMESPACE
to different policies.
\value Http2AllowedAttribute
- Requests only, type: QMetaType::Bool (default: false)
+ Requests only, type: QMetaType::Bool (default: true)
Indicates whether the QNetworkAccessManager code is
allowed to use HTTP/2 with this request. This applies
to SSL requests or 'cleartext' HTTP/2.