Clear SSL_OP_LEGACY_SERVER_CONNECT (#146)

Co-authored-by: Erik Lindblad <[email protected]>
This commit is contained in:
Erik LindbladandErik Lindblad authored and GitHub committed 2022-05-06 21:26:27 +08:00
1 parent 37a511c24d
commit e72b25e415
1 file changed
+1
+1
View File
@@ -19,6 +19,7 @@ QNetworkReply* gpclient::helper::createRequest(QString url, QByteArray params)
// Skip the ssl verifying
QSslConfiguration conf = request.sslConfiguration();
conf.setPeerVerifyMode(QSslSocket::VerifyNone);
conf.setSslOption(QSsl::SslOptionDisableLegacyRenegotiation, false);
request.setSslConfiguration(conf);
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");