diff options
author | Krombel <krombel@krombel.de> | 2018-10-10 22:09:09 +0200 |
---|---|---|
committer | Krombel <krombel@krombel.de> | 2018-10-10 22:09:09 +0200 |
commit | 50734026dfcbe0bdda2a9d0bd1656da05f29a3f2 (patch) | |
tree | 0ffc827b28595dba275e65369fc1b2b2b87d3ed8 /lib/jobs/basejob.cpp | |
parent | fa6bf46d76a69b8f1b03145a5e3d643d541ce353 (diff) | |
download | libquotient-50734026dfcbe0bdda2a9d0bd1656da05f29a3f2.tar.gz libquotient-50734026dfcbe0bdda2a9d0bd1656da05f29a3f2.zip |
add http2 and pipelining for all Jobs
Diffstat (limited to 'lib/jobs/basejob.cpp')
-rw-r--r-- | lib/jobs/basejob.cpp | 5 |
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 ) |