From bb6b00114e805d56267eda2e0554d7c35489cefd Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 9 Jan 2020 13:13:49 +0100 Subject: [PATCH] Clear buffers before making a request. --- src/curl_wrapper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/curl_wrapper.cpp b/src/curl_wrapper.cpp index 930e840..f675cca 100644 --- a/src/curl_wrapper.cpp +++ b/src/curl_wrapper.cpp @@ -84,6 +84,8 @@ answer_type CURLWrapper::make_request(const http_method &method, string uri, const parametermap ¶meters) { _stream_cancelled = false; + _curl_buffer_headers.clear(); + _curl_buffer_body.clear(); CURLcode code; switch (method)