Bugfix: Do not try to set proxy in parent class.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6b070dec98
commit
707771c7bf
@ -76,11 +76,11 @@ API::http::http(const API &api, const string &instance,
|
||||
{
|
||||
string hostport = env_proxy.substr(pos + 1);
|
||||
string userpw = env_proxy.substr(0, pos);
|
||||
parent.set_proxy(hostport, userpw);
|
||||
set_proxy(hostport, userpw);
|
||||
}
|
||||
else
|
||||
{
|
||||
parent.set_proxy(env_proxy);
|
||||
set_proxy(env_proxy);
|
||||
}
|
||||
}
|
||||
catch (const std::exception &)
|
||||
|
@ -146,11 +146,11 @@ namespace Mastodon
|
||||
* @brief Set proxy. Do not call this directly.
|
||||
*
|
||||
* @param hostport host[:port]
|
||||
* @param userpw user[:password]
|
||||
* @param userpw user[:password] (optional)
|
||||
*
|
||||
* @since 0.110.0
|
||||
*/
|
||||
void set_proxy(const string &hostport, const string &userpw);
|
||||
void set_proxy(const string &hostport, const string &userpw = "");
|
||||
|
||||
private:
|
||||
const API &parent;
|
||||
|
Reference in New Issue
Block a user