Revert unnecessary change from merge

This commit is contained in:
John Luo 2019-07-09 15:11:04 -07:00
parent ae5b18d459
commit 146a483852
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace Microsoft.AspNetCore.HttpSys.Internal
{
@ -15,7 +14,7 @@ namespace Microsoft.AspNetCore.HttpSys.Internal
// In-place implementation of the algorithm from https://tools.ietf.org/html/rfc3986#section-5.2.4
public static unsafe int RemoveDotSegments(Span<byte> input)
{
fixed (byte* start = &MemoryMarshal.GetReference(input))
fixed (byte* start = input)
{
var end = start + input.Length;
return RemoveDotSegments(start, end);