From 50734026dfcbe0bdda2a9d0bd1656da05f29a3f2 Mon Sep 17 00:00:00 2001 From: Krombel Date: Wed, 10 Oct 2018 22:09:09 +0200 Subject: add http2 and pipelining for all Jobs --- lib/jobs/basejob.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/jobs') diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp index 979fa431..b21173ae 100644 --- a/lib/jobs/basejob.cpp +++ b/lib/jobs/basejob.cpp @@ -203,6 +203,11 @@ void BaseJob::Private::sendRequest(bool inBackground) #if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true); req.setMaximumRedirectsAllowed(10); +#endif + req.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true); +#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0) + // some sources claim that there are issues with QT 5.8 + req.setAttribute(QNetworkRequest::HTTP2AllowedAttribute, true); #endif for (auto it = requestHeaders.cbegin(); it != requestHeaders.cend(); ++it) req.setRawHeader(it.key(), it.value()); -- cgit v1.2.3