mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-02 03:38:03 +08:00
uses default constructor of string_view to reset _statusMessage
This commit is contained in:
parent
65173e7e97
commit
5618fdaee8
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user