Skip to content

Commit

Permalink
SslButton: Add HTTP/2 info #3146
Browse files Browse the repository at this point in the history
  • Loading branch information
guruz committed Mar 26, 2018
1 parent b34878c commit 7739157
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 @@ -189,6 +189,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 7739157

Please sign in to comment.