Support cpprest on Linux (#3847)

* Support cpprest on Linux

* Update petstore code
This commit is contained in:
Sergii Rustamov
2016-09-23 13:32:33 +03:00
committed by wing328
parent 569997b073
commit fee23f2230
4 changed files with 6 additions and 6 deletions

View File

@@ -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)
{