Merge pull request #182 from moneroexamples/fix_nonnull_string_view

uses default constructor of string_view to reset _statusMessage
This commit is contained in:
An Tao 2019-06-29 20:14:20 +08:00 committed by GitHub
commit c9f22b4851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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