Updating to new toolset compiler. (#2043)
* Updating to new toolset compiler. Now includes ref escaping rules. * newer version.
This commit is contained in:
parent
284367db9f
commit
f0ade24cf7
|
|
@ -14,7 +14,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NETCore.Compilers" Version="2.6.0-rdonly-ref-61915-01" PrivateAssets="All">
|
||||
<PackageReference Include="Microsoft.NETCore.Compilers" Version="2.6.0-rdonly-ref-62106-01" PrivateAssets="All">
|
||||
<!--
|
||||
Suppresses the warning about having an explicit package version in this repo.
|
||||
We are okay with this for now as the experimental version of the compiler is unique to Kestrel (for now).
|
||||
|
|
|
|||
|
|
@ -72,13 +72,12 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
|
|||
private unsafe void ParseRequestLine(TRequestHandler handler, byte* data, int length)
|
||||
{
|
||||
int offset;
|
||||
Span<byte> customMethod = default(Span<byte>);
|
||||
// Get Method and set the offset
|
||||
var method = HttpUtilities.GetKnownMethod(data, length, out offset);
|
||||
if (method == HttpMethod.Custom)
|
||||
{
|
||||
customMethod = GetUnknownMethod(data, length, out offset);
|
||||
}
|
||||
|
||||
Span<byte> customMethod = method == HttpMethod.Custom ?
|
||||
GetUnknownMethod(data, length, out offset) :
|
||||
default;
|
||||
|
||||
// Skip space
|
||||
offset++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue