mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 00:43:46 +00:00
Support cpprest on Linux (#3847)
* Support cpprest on Linux * Update petstore code
This commit is contained in:
@@ -330,7 +330,7 @@ utility::string_t ModelBase::stringFromHttpContent(std::shared_ptr<HttpContent>
|
||||
std::string str((std::istreambuf_iterator<char>(*data.get())),
|
||||
std::istreambuf_iterator<char>());
|
||||
|
||||
return utility::conversions::to_utf16string(str);
|
||||
return utility::conversions::to_string_t(str);
|
||||
}
|
||||
utility::datetime ModelBase::dateFromHttpContent(std::shared_ptr<HttpContent> val)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user