Catch path by value in request_stream().
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
2c97d43ce2
commit
031c0c3e22
|
@ -61,8 +61,8 @@ void API::http::request_stream(const string &path, string &stream)
|
||||||
{
|
{
|
||||||
static return_call ret;
|
static return_call ret;
|
||||||
_streamthread = std::thread(
|
_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,
|
ret = request_common(http_method::GET_STREAM, path,
|
||||||
curlpp::Forms(), stream);
|
curlpp::Forms(), stream);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
|
Reference in New Issue