Updating to new toolset compiler. (#2043)

* Updating to new toolset compiler.
Now includes ref escaping rules.

* newer version.
This commit is contained in:
Vladimir Sadov 2017-09-06 15:52:47 -07:00 committed by Stephen Halter
parent 284367db9f
commit f0ade24cf7
2 changed files with 5 additions and 6 deletions

View File

@ -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).

View File

@ -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++;