summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/curl_wrapper.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/curl_wrapper.hpp b/include/curl_wrapper.hpp
index 4c6b1ef..3812f5a 100644
--- a/include/curl_wrapper.hpp
+++ b/include/curl_wrapper.hpp
@@ -124,7 +124,7 @@ public:
{
char *cbuf{curl_easy_escape(_connection, url.data(),
static_cast<int>(url.size()))};
- string sbuf{cbuf};
+ const string sbuf{cbuf};
curl_free(cbuf);
return sbuf;
}
@@ -146,7 +146,7 @@ public:
{
char *cbuf{curl_easy_unescape(_connection, url.data(),
static_cast<int>(url.size()), nullptr)};
- string sbuf{cbuf};
+ const string sbuf{cbuf};
curl_free(cbuf);
return sbuf;
}