Using the well-known-header field without checking set bit
This commit is contained in:
parent
b6c272cd5b
commit
0adbbd0217
File diff suppressed because it is too large
Load Diff
|
|
@ -183,14 +183,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
||||||
{{
|
{{
|
||||||
get
|
get
|
||||||
{{
|
{{
|
||||||
if ({header.TestBit()})
|
return _{header.Identifier};
|
||||||
{{
|
|
||||||
return _{header.Identifier};
|
|
||||||
}}
|
|
||||||
else
|
|
||||||
{{
|
|
||||||
return StringValues.Empty;
|
|
||||||
}}
|
|
||||||
}}
|
}}
|
||||||
set
|
set
|
||||||
{{
|
{{
|
||||||
|
|
@ -316,6 +309,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
||||||
if ({header.TestBit()})
|
if ({header.TestBit()})
|
||||||
{{
|
{{
|
||||||
{header.ClearBit()};
|
{header.ClearBit()};
|
||||||
|
_{header.Identifier} = StringValues.Empty;
|
||||||
return true;
|
return true;
|
||||||
}}
|
}}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue