mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
removed the replacement of https by http in apiController
This commit is contained in:
@@ -90,7 +90,7 @@ void ApiController::updateServerConfigFromApi()
|
|||||||
request.setRawHeader("Authorization",
|
request.setRawHeader("Authorization",
|
||||||
"Api-Key " + serverConfig.value(configKey::accessToken).toString().toUtf8());
|
"Api-Key " + serverConfig.value(configKey::accessToken).toString().toUtf8());
|
||||||
QString endpoint = serverConfig.value(configKey::apiEdnpoint).toString();
|
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();
|
QString protocol = serverConfig.value(configKey::protocol).toString();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user