diff --git a/lib/src/HttpResponseImpl.cc b/lib/src/HttpResponseImpl.cc index 5ba59274..25b630e7 100755 --- a/lib/src/HttpResponseImpl.cc +++ b/lib/src/HttpResponseImpl.cc @@ -359,7 +359,8 @@ std::shared_ptr HttpResponseImpl::renderToString() const return _httpString; } } - auto httpString = std::make_shared(256, '\0'); + auto httpString = std::make_shared(); + httpString->reserve(256); if (!_fullHeaderString) { makeHeaderString(httpString);