mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 14:05:58 +03:00
Disable http2 for now due to Qt bug
So that user may continue to use http2 on their webpage
Signed-off-by: XNG <Milokita@users.noreply.github.com>
(cherry picked from commit dad95d4e46
)
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
eb7ed33d98
commit
e2066b317b
1 changed files with 4 additions and 4 deletions
|
@ -93,12 +93,12 @@ 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, 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)
|
||||
|
||||
// Disable http2 for now due to Qt bug
|
||||
if (newRequest.url().scheme() == "https") { // Not for "http": QTBUG-61397
|
||||
newRequest.setAttribute(QNetworkRequest::HTTP2AllowedAttribute, true);
|
||||
newRequest.setAttribute(QNetworkRequest::HTTP2AllowedAttribute, false);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
return QNetworkAccessManager::createRequest(op, newRequest, outgoingData);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue