summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortastytea2020-01-12 17:27:40 +0100
committertastytea2020-01-12 17:27:40 +0100
commit04526f37cc83bf13b1ba0715ede6826b3b053720 (patch)
tree297b71d78bc664b967ce2215cad7d44a9a3652ac /src
parent975fe576775aa67008ec0134337cd1cd2ba201e6 (diff)
downloadmastodonpp-04526f37cc83bf13b1ba0715ede6826b3b053720.tar
mastodonpp-04526f37cc83bf13b1ba0715ede6826b3b053720.tar.gz
mastodonpp-04526f37cc83bf13b1ba0715ede6826b3b053720.zip
Make argument of CURLWrapper::set_cafile() const.
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 50e20ab..d5d96be 100644
--- a/src/curl_wrapper.cpp
+++ b/src/curl_wrapper.cpp
@@ -243,7 +243,7 @@ void CURLWrapper::set_access_token(const string_view access_token)
debuglog << "Set authorization token.\n";
}
-void CURLWrapper::set_cainfo(string_view path)
+void CURLWrapper::set_cainfo(const string_view path)
{
CURLcode code{curl_easy_setopt(_connection, CURLOPT_CAINFO, path.data())};
if (code != CURLE_OK)