Fix a new bug in last commit

This commit is contained in:
an-tao 2019-03-01 18:30:51 +08:00
parent c06affed2a
commit 0f51ac56c0
1 changed files with 2 additions and 1 deletions

View File

@ -359,7 +359,8 @@ std::shared_ptr<std::string> HttpResponseImpl::renderToString() const
return _httpString;
}
}
auto httpString = std::make_shared<std::string>(256, '\0');
auto httpString = std::make_shared<std::string>();
httpString->reserve(256);
if (!_fullHeaderString)
{
makeHeaderString(httpString);