From 08ae30835cfd2673a6fa5f564a2673283cec6f85 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 30 Aug 2019 08:06:48 +0200 Subject: [PATCH] Confirmed that proxies work, added debug message with proxy info. --- src/http.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/http.cpp b/src/http.cpp index 9648e0a..064b134 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -55,8 +55,6 @@ API::http::http(const API &api, const string &instance, { Poco::Net::initializeSSL(); - // FIXME: rewrite set_proxy() that it calls set_proxy() here. - try { string env_proxy = Environment::get("http_proxy"); @@ -97,8 +95,6 @@ API::http::~http() void API::http::set_proxy(const string &hostport, const string &userpw) { - // TODO: Test proxy. - try { HTTPSClientSession::ProxyConfig proxyconfig; @@ -127,6 +123,7 @@ void API::http::set_proxy(const string &hostport, const string &userpw) } HTTPSClientSession::setGlobalProxyConfig(proxyconfig); + ttdebug << "Set proxy to " << hostport << ".\n"; } catch (const std::exception &e) {