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;
|
_absoluteRequestTarget = null;
|
||||||
QueryString = null;
|
QueryString = null;
|
||||||
_httpVersion = Http.HttpVersion.Unknown;
|
_httpVersion = Http.HttpVersion.Unknown;
|
||||||
StatusCode = StatusCodes.Status200OK;
|
_statusCode = StatusCodes.Status200OK;
|
||||||
ReasonPhrase = null;
|
_reasonPhrase = null;
|
||||||
|
|
||||||
RemoteIpAddress = RemoteEndPoint?.Address;
|
RemoteIpAddress = RemoteEndPoint?.Address;
|
||||||
RemotePort = RemoteEndPoint?.Port ?? 0;
|
RemotePort = RemoteEndPoint?.Port ?? 0;
|
||||||
|
|
|
||||||
|
|
@ -256,8 +256,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2
|
||||||
_requestTargetForm = HttpRequestTarget.Unknown;
|
_requestTargetForm = HttpRequestTarget.Unknown;
|
||||||
_absoluteRequestTarget = null;
|
_absoluteRequestTarget = null;
|
||||||
QueryString = null;
|
QueryString = null;
|
||||||
StatusCode = StatusCodes.Status200OK;
|
_statusCode = StatusCodes.Status200OK;
|
||||||
ReasonPhrase = null;
|
_reasonPhrase = null;
|
||||||
|
|
||||||
RemoteIpAddress = RemoteEndPoint?.Address;
|
RemoteIpAddress = RemoteEndPoint?.Address;
|
||||||
RemotePort = RemoteEndPoint?.Port ?? 0;
|
RemotePort = RemoteEndPoint?.Port ?? 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue