summaryrefslogtreecommitdiffstats
path: root/src/curl_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/curl_wrapper.cpp')
-rw-r--r--src/curl_wrapper.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/curl_wrapper.cpp b/src/curl_wrapper.cpp
index 32d6056..ac534bb 100644
--- a/src/curl_wrapper.cpp
+++ b/src/curl_wrapper.cpp
@@ -33,7 +33,7 @@ CURLWrapper::~CURLWrapper() noexcept
curl_global_cleanup();
}
-string CURLWrapper::make_request(const http_method &meth,
+answer_type CURLWrapper::make_request(const http_method &meth,
const string_view &uri)
{
CURLcode code;
@@ -72,7 +72,9 @@ string CURLWrapper::make_request(const http_method &meth,
_curl_buffer_error};
}
- return _curl_buffer;
+ answer_type answer;
+ answer.body = _curl_buffer;
+ return answer;
}
int CURLWrapper::writer(char *data, size_t size, size_t nmemb,