From 146a483852c2727045d03254c2ca0e74850f0e01 Mon Sep 17 00:00:00 2001 From: John Luo Date: Tue, 9 Jul 2019 15:11:04 -0700 Subject: [PATCH] Revert unnecessary change from merge --- src/Shared/HttpSys/RequestProcessing/PathNormalizer.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Shared/HttpSys/RequestProcessing/PathNormalizer.cs b/src/Shared/HttpSys/RequestProcessing/PathNormalizer.cs index f6a0159ff5..ca9545dc6c 100644 --- a/src/Shared/HttpSys/RequestProcessing/PathNormalizer.cs +++ b/src/Shared/HttpSys/RequestProcessing/PathNormalizer.cs @@ -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 input) { - fixed (byte* start = &MemoryMarshal.GetReference(input)) + fixed (byte* start = input) { var end = start + input.Length; return RemoveDotSegments(start, end);