mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-04 08:34:10 +02:00
HTTP2: Only from Qt 5.9.4 #6285
This commit is contained in:
parent
5e2270bd57
commit
e82869d10e
17
ChangeLog
17
ChangeLog
@ -1,7 +1,22 @@
|
||||
ChangeLog
|
||||
=========
|
||||
|
||||
version 2.4.0 (2017-12-XX)
|
||||
version 2.4.1 (2017-02-xx)
|
||||
* Ignore files with file names that can't be encoded for the filesystem (#6287, #5676, #5719)
|
||||
* Issues: Speed up insertion and add hard upper limit (#6272)
|
||||
* Notifications: Fix "Dismiss" action
|
||||
* Notifications: Fix timer invocation on macOS
|
||||
* Notifications: Immediately poll when account online
|
||||
* Protocol: Remove entries for auto resolved conflicts (#6316)
|
||||
* owncloudcmd: Set proxy before capabilities call (#6281)
|
||||
* owncloudcmd: Do not do the capability call when --nonshib is passed
|
||||
* Avatars: Use old location for servers <10 (#6279)
|
||||
* Link shares: Change default share name (#6298)
|
||||
* Nautilus integration: Work with python2 and python3
|
||||
* HTTP2: Only allow with Qt 5.9.4 (#6285)
|
||||
* Crash fixes
|
||||
|
||||
version 2.4.0 (2017-12-21)
|
||||
* If you're using 2.4.0 alpha1, please upgrade as previous alphas/rcs had an issue with hidden files and renames!
|
||||
* OAuth2 authentication support by opening external browser (#5668)
|
||||
* Shibboleth: Change to use OAuth2 if supported (#6198)
|
||||
|
@ -93,9 +93,8 @@ QNetworkReply *AccessManager::createRequest(QNetworkAccessManager::Operation op,
|
||||
qInfo(lcAccessManager) << op << verb << newRequest.url().toString() << "has X-Request-ID" << requestId;
|
||||
newRequest.setRawHeader("X-Request-ID", requestId);
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
|
||||
// only enable HTTP2 with Qt 5.9 because Qt 5.8.0 has too many bugs
|
||||
// (only use one connection if the server does not support HTTP2)
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 4)
|
||||
// only enable HTTP2 with Qt 5.9.4 because old Qt have too many bugs (e.g. QTBUG-64359 is fixed in >= Qt 5.9.4)
|
||||
if (newRequest.url().scheme() == "https") { // Not for "http": QTBUG-61397
|
||||
newRequest.setAttribute(QNetworkRequest::HTTP2AllowedAttribute, true);
|
||||
}
|
||||
|
@ -318,6 +318,7 @@ bool ConnectionValidator::setAndCheckServerVersion(const QString &version)
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
|
||||
// Record that the server supports HTTP/2
|
||||
// Actual decision if we should use HTTP/2 is done in AccessManager::createRequest
|
||||
if (auto job = qobject_cast<AbstractNetworkJob *>(sender())) {
|
||||
if (auto reply = job->reply()) {
|
||||
_account->setHttp2Supported(
|
||||
|
Loading…
Reference in New Issue
Block a user