Reset StatusCode & ReasonPhrase directly (#2025)
This commit is contained in:
parent
4735154ecd
commit
088f7e32ae
|
|
@ -347,8 +347,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
|
|||
_absoluteRequestTarget = null;
|
||||
QueryString = null;
|
||||
_httpVersion = Http.HttpVersion.Unknown;
|
||||
StatusCode = StatusCodes.Status200OK;
|
||||
ReasonPhrase = null;
|
||||
_statusCode = StatusCodes.Status200OK;
|
||||
_reasonPhrase = null;
|
||||
|
||||
RemoteIpAddress = RemoteEndPoint?.Address;
|
||||
RemotePort = RemoteEndPoint?.Port ?? 0;
|
||||
|
|
|
|||
|
|
@ -256,8 +256,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2
|
|||
_requestTargetForm = HttpRequestTarget.Unknown;
|
||||
_absoluteRequestTarget = null;
|
||||
QueryString = null;
|
||||
StatusCode = StatusCodes.Status200OK;
|
||||
ReasonPhrase = null;
|
||||
_statusCode = StatusCodes.Status200OK;
|
||||
_reasonPhrase = null;
|
||||
|
||||
RemoteIpAddress = RemoteEndPoint?.Address;
|
||||
RemotePort = RemoteEndPoint?.Port ?? 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue