test fixes and whitespace changes to generated code
This commit is contained in:
parent
11ed34f229
commit
610601cc6e
File diff suppressed because it is too large
Load Diff
|
|
@ -712,8 +712,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
|||
await connection.Receive(
|
||||
$"HTTP/1.1 200 OK",
|
||||
$"Date: {server.Context.DateHeaderValue}",
|
||||
"Transfer-Encoding: chunked",
|
||||
"Content-Length: 13",
|
||||
"Transfer-Encoding: chunked",
|
||||
"",
|
||||
"hello, world");
|
||||
}
|
||||
|
|
@ -748,8 +748,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
|||
await connection.Receive(
|
||||
$"HTTP/1.1 200 OK",
|
||||
$"Date: {server.Context.DateHeaderValue}",
|
||||
"Transfer-Encoding: chunked",
|
||||
"Content-Length: 11",
|
||||
"Transfer-Encoding: chunked",
|
||||
"",
|
||||
"hello, world");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,12 +44,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel.GeneratedCode
|
|||
_headers._raw{header.Identifier} = null;")}
|
||||
}}
|
||||
return;
|
||||
|
||||
}}
|
||||
")}}}
|
||||
break;
|
||||
|
||||
|
||||
")}}}
|
||||
|
||||
{(handleUnknown ? $@"
|
||||
|
|
@ -450,17 +447,16 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
|
|||
_bits = 0;
|
||||
return;
|
||||
}}
|
||||
|
||||
{Each(loop.Headers.OrderBy(h => !h.PrimaryHeader), header => $@"
|
||||
if ({header.TestBit()})
|
||||
if ({header.TestBit()})
|
||||
{{
|
||||
_headers._{header.Identifier} = default(StringValues);
|
||||
{header.ClearBit()};
|
||||
if(_bits == 0)
|
||||
{{
|
||||
_headers._{header.Identifier} = default(StringValues);
|
||||
{header.ClearBit()};
|
||||
if(_bits == 0)
|
||||
{{
|
||||
return;
|
||||
}}
|
||||
return;
|
||||
}}
|
||||
}}
|
||||
")}
|
||||
}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue