Catch path by value in request_stream().
the build was successful Details

This commit is contained in:
tastytea 2019-04-10 21:04:04 +02:00
parent 2c97d43ce2
commit 031c0c3e22
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ void API::http::request_stream(const string &path, string &stream)
{
static return_call ret;
_streamthread = std::thread(
[&]
{
[&, path] // path is captured by value because it may be
{ // deleted before we access it.
ret = request_common(http_method::GET_STREAM, path,
curlpp::Forms(), stream);
if (!ret)