Print remaining content of the stream in debug mode.
the build was successful Details

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
1 changed files with 1 additions and 0 deletions

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.