forked from loafle/openapi-generator-original
Allocate httpcontent (#8217)
This commit is contained in:
parent
febd65d3b8
commit
b127cc7b70
@ -300,7 +300,7 @@ pplx::task<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/r
|
|||||||
})
|
})
|
||||||
.then([=](std::vector<unsigned char> localVarResponse)
|
.then([=](std::vector<unsigned char> localVarResponse)
|
||||||
{
|
{
|
||||||
{{{returnType}}} localVarResult;
|
{{{returnType}}} localVarResult = std::make_shared<HttpContent>();
|
||||||
std::shared_ptr<std::stringstream> stream = std::make_shared<std::stringstream>(std::string(localVarResponse.begin(), localVarResponse.end()));
|
std::shared_ptr<std::stringstream> stream = std::make_shared<std::stringstream>(std::string(localVarResponse.begin(), localVarResponse.end()));
|
||||||
localVarResult->setData(stream);
|
localVarResult->setData(stream);
|
||||||
return localVarResult;
|
return localVarResult;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user