From 796e159cdc628631cd19eacfb1796fd117105c65 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 10 Jan 2020 18:50:53 +0100 Subject: [PATCH] Actually set the proxy to the string in CURLWrappper::set_proxy(). --- src/curl_wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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};