diff options
Diffstat (limited to 'Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp')
-rw-r--r-- | Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp b/Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp index 0da45fbc7..792459558 100644 --- a/Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp +++ b/Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp @@ -41,7 +41,7 @@ #include <QCoreApplication> -#if USE(HTTP2) +#if USE(HTTP2) && QT_VERSION < QT_VERSION_CHECK(5, 14, 0) #include <private/http2protocol_p.h> #include <cstdlib> @@ -62,7 +62,7 @@ ProtocolParameters::ProtocolParameters() QT_END_NAMESPACE -#endif // USE(HTTP2) +#endif // USE(HTTP2) && QT_VERSION < QT_VERSION_CHECK(5, 14, 0) static const int gMaxRedirections = 10; @@ -797,7 +797,7 @@ QNetworkReply* QNetworkReplyHandler::sendNetworkRequest(QNetworkAccessManager* m if (!manager) return 0; -#if USE(HTTP2) +#if USE(HTTP2) && QT_VERSION < QT_VERSION_CHECK(5, 14, 0) static const bool alpnIsSupported = ResourceRequest::alpnIsSupported(); if (alpnIsSupported && !manager->property(Http2::http2ParametersPropertyName).isValid()) { Http2::ProtocolParameters params; |