summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortastytea2020-01-10 18:50:53 +0100
committertastytea2020-01-10 18:50:53 +0100
commit796e159cdc628631cd19eacfb1796fd117105c65 (patch)
tree91a8c931568d0b6467754146e4a1b87b2211f6a6 /src
parentf601e770ac2f74aef0fcead977ff0bd95ce57f99 (diff)
downloadmastodonpp-796e159cdc628631cd19eacfb1796fd117105c65.tar
mastodonpp-796e159cdc628631cd19eacfb1796fd117105c65.tar.gz
mastodonpp-796e159cdc628631cd19eacfb1796fd117105c65.zip
Actually set the proxy to the string in CURLWrappper::set_proxy().
Diffstat (limited to 'src')
-rw-r--r--src/curl_wrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/curl_wrapper.cpp b/src/curl_wrapper.cpp
index cf6adfe..5af9298 100644
--- a/src/curl_wrapper.cpp
+++ b/src/curl_wrapper.cpp
@@ -67,7 +67,7 @@ CURLWrapper::~CURLWrapper() noexcept
void CURLWrapper::set_proxy(const string_view proxy)
{
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
- CURLcode code{curl_easy_setopt(_connection, CURLOPT_PROXY, proxy)};
+ CURLcode code{curl_easy_setopt(_connection, CURLOPT_PROXY, proxy.data())};
if (code != CURLE_OK)
{
throw CURLException{code, "Failed to set proxy", _curl_buffer_error};