ADD: added fix of returning string from curl response class
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#define MAX_FILE_LENGTH 200000
|
#define MAX_FILE_LENGTH 200000
|
||||||
|
|
||||||
@@ -55,7 +56,7 @@ public:
|
|||||||
|
|
||||||
std::string getResponse()
|
std::string getResponse()
|
||||||
{
|
{
|
||||||
return m_pBuffer;
|
return std::string(m_pBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void print()
|
void print()
|
||||||
|
|||||||
Reference in New Issue
Block a user