uses default constructor of string_view to reset _statusMessage

This commit is contained in:
moneroexamples 2019-06-29 19:20:42 +08:00
parent 65173e7e97
commit 5618fdaee8
1 changed files with 2 additions and 2 deletions

View File

@ -404,7 +404,7 @@ void HttpResponseImpl::clear()
{
_statusCode = kUnknown;
_v = kHttp11;
_statusMessage = nullptr;
_statusMessage = string_view{};
_fullHeaderString.reset();
_headers.clear();
_cookies.clear();