aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs
diff options
context:
space:
mode:
authorKrombel <krombel@krombel.de>2018-10-10 22:09:09 +0200
committerKrombel <krombel@krombel.de>2018-10-10 22:09:09 +0200
commit50734026dfcbe0bdda2a9d0bd1656da05f29a3f2 (patch)
tree0ffc827b28595dba275e65369fc1b2b2b87d3ed8 /lib/jobs
parentfa6bf46d76a69b8f1b03145a5e3d643d541ce353 (diff)
downloadlibquotient-50734026dfcbe0bdda2a9d0bd1656da05f29a3f2.tar.gz
libquotient-50734026dfcbe0bdda2a9d0bd1656da05f29a3f2.zip
add http2 and pipelining for all Jobs
Diffstat (limited to 'lib/jobs')
-rw-r--r--lib/jobs/basejob.cpp5
1 files changed, 5 insertions, 0 deletions
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
@@ -204,6 +204,11 @@ void BaseJob::Private::sendRequest(bool inBackground)
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());
switch( verb )