Merge pull request #667 from amnezia-vpn/bugfix/http-replacement

removed the replacement of https by http in apiController
This commit is contained in:
pokamest 2024-03-04 13:07:06 -08:00 committed by GitHub
commit ea67c01da8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,7 +90,7 @@ void ApiController::updateServerConfigFromApi()
request.setRawHeader("Authorization",
"Api-Key " + serverConfig.value(configKey::accessToken).toString().toUtf8());
QString endpoint = serverConfig.value(configKey::apiEdnpoint).toString();
request.setUrl(endpoint.replace("https", "http")); // todo remove
request.setUrl(endpoint);
QString protocol = serverConfig.value(configKey::protocol).toString();