Skip to content

Commit

Permalink
SslButton: Add HTTP/2 info #3146
Browse files Browse the repository at this point in the history
(cherry picked from commit 7739157)
  • Loading branch information
guruz committed Mar 27, 2018
1 parent 8da6fc4 commit 928cdf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/gui/sslbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ void SslButton::slotUpdateMenu()

AccountPtr account = _accountState->account();

if (account->isHttp2Supported()) {
_menu->addAction("HTTP/2")->setEnabled(false);
}

if (account->url().scheme() == QLatin1String("https")) {
QString sslVersion = account->_sessionCipher.protocolString()
+ ", " + account->_sessionCipher.authenticationMethod()
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/account.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class OWNCLOUDSYNC_EXPORT Account : public QObject
/** Detects a specific bug in older server versions */
bool rootEtagChangesNotOnlySubFolderEtags();

/** True when the server supports HTTP2 */
/** True when the server connection is using HTTP2 */
bool isHttp2Supported() { return _http2Supported; }
void setHttp2Supported(bool value) { _http2Supported = value; }

Expand Down

0 comments on commit 928cdf4

Please sign in to comment.