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
|
||||
{{
|
||||
if ({header.TestBit()})
|
||||
{{
|
||||
return _{header.Identifier};
|
||||
}}
|
||||
else
|
||||
{{
|
||||
return StringValues.Empty;
|
||||
}}
|
||||
return _{header.Identifier};
|
||||
}}
|
||||
set
|
||||
{{
|
||||
|
|
@ -316,6 +309,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
|||
if ({header.TestBit()})
|
||||
{{
|
||||
{header.ClearBit()};
|
||||
_{header.Identifier} = StringValues.Empty;
|
||||
return true;
|
||||
}}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue