From 92d4273fa95b715a1eacbeb035e29939b18d5416 Mon Sep 17 00:00:00 2001 From: Henry Winkel Date: Thu, 26 Oct 2023 15:02:58 +0200 Subject: [PATCH] ADD: added fix of returning string from curl response class --- include/kubecontrol/WriterMemoryClass.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/kubecontrol/WriterMemoryClass.hpp b/include/kubecontrol/WriterMemoryClass.hpp index 629082d..43a67b6 100644 --- a/include/kubecontrol/WriterMemoryClass.hpp +++ b/include/kubecontrol/WriterMemoryClass.hpp @@ -3,6 +3,7 @@ #include #include #include +#include #define MAX_FILE_LENGTH 200000 @@ -55,7 +56,7 @@ public: std::string getResponse() { - return m_pBuffer; + return std::string(m_pBuffer); } void print()