diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-10-11 12:18:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-11 12:18:24 +0900 |
commit | 246ececa1f8f0c69a6ee95d1d2de9d311d4e81b1 (patch) | |
tree | 0ffc827b28595dba275e65369fc1b2b2b87d3ed8 /lib | |
parent | fa6bf46d76a69b8f1b03145a5e3d643d541ce353 (diff) | |
parent | 50734026dfcbe0bdda2a9d0bd1656da05f29a3f2 (diff) | |
download | libquotient-246ececa1f8f0c69a6ee95d1d2de9d311d4e81b1.tar.gz libquotient-246ececa1f8f0c69a6ee95d1d2de9d311d4e81b1.zip |
Merge pull request #250 from krombel/enable_http2_and_pipelining
add http2 and pipelining for all Jobs
Diffstat (limited to 'lib')
-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 ) |