Skip to content

Commit b127cc7

Browse files
authored
Allocate httpcontent (#8217)
1 parent febd65d commit b127cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/api-source.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ pplx::task<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/r
300300
})
301301
.then([=](std::vector<unsigned char> localVarResponse)
302302
{
303-
{{{returnType}}} localVarResult;
303+
{{{returnType}}} localVarResult = std::make_shared<HttpContent>();
304304
std::shared_ptr<std::stringstream> stream = std::make_shared<std::stringstream>(std::string(localVarResponse.begin(), localVarResponse.end()));
305305
localVarResult->setData(stream);
306306
return localVarResult;

0 commit comments

Comments
 (0)