mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Fix: Apply http2 patch from owncloud #1573 - only with Qt >= 5.8
Drone builds failed with Qt 5.7 and we introduce a new ifdef here to avoid patching specifically for Ubuntu Xenial only. Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
9e8498ad4e
commit
5131463644
2 changed files with 5 additions and 1 deletions
|
@ -160,6 +160,7 @@ void AbstractNetworkJob::slotFinished()
|
|||
qCWarning(lcNetworkJob) << "SslHandshakeFailedError: " << errorString() << " : can be caused by a webserver wanting SSL client certificates";
|
||||
}
|
||||
|
||||
#if (QT_VERSION >= 0x050800)
|
||||
// Qt doesn't yet transparently resend HTTP2 requests, do so here
|
||||
const auto maxHttp2Resends = 5;
|
||||
QByteArray verb = requestVerb(*reply());
|
||||
|
@ -190,6 +191,7 @@ void AbstractNetworkJob::slotFinished()
|
|||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (_reply->error() != QNetworkReply::NoError) {
|
||||
if (!_ignoreCredentialFailure || _reply->error() != QNetworkReply::AuthenticationRequiredError) {
|
||||
|
|
|
@ -189,7 +189,9 @@ private:
|
|||
QString _path;
|
||||
QTimer _timer;
|
||||
int _redirectCount = 0;
|
||||
#if (QT_VERSION >= 0x050800)
|
||||
int _http2ResendCount = 0;
|
||||
#endif
|
||||
|
||||
// Set by the xyzRequest() functions and needed to be able to redirect
|
||||
// requests, should it be required.
|
||||
|
|
Loading…
Reference in a new issue