Print remaining content of the stream in debug mode.
All checks were successful
the build was successful

This commit is contained in:
tastytea 2019-04-10 21:12:13 +02:00
parent 031c0c3e22
commit c2eff2b09e
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -65,6 +65,7 @@ void API::http::request_stream(const string &path, string &stream)
{ // deleted before we access it.
ret = request_common(http_method::GET_STREAM, path,
curlpp::Forms(), stream);
ttdebug << "Remaining content of the stream: " << stream << '\n';
if (!ret)
{
// Embed the HTTP status code in stream on error.