diff --git a/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/RequestTests.cs b/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/RequestTests.cs index f4ae7dbc02..ab199580e0 100644 --- a/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/RequestTests.cs +++ b/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/RequestTests.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Testing.xunit; using Xunit; -namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests +namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests.InProcess { [Collection(IISTestSiteCollection.Name)] public class RequestInProcessTests diff --git a/src/Shared/HttpSys/RequestProcessing/RequestUriBuilder.cs b/src/Shared/HttpSys/RequestProcessing/RequestUriBuilder.cs index 605a35270e..2f058e8ab0 100644 --- a/src/Shared/HttpSys/RequestProcessing/RequestUriBuilder.cs +++ b/src/Shared/HttpSys/RequestProcessing/RequestUriBuilder.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; @@ -32,7 +32,7 @@ namespace Microsoft.AspNetCore.HttpSys.Internal var length = PathNormalizer.RemoveDotSegments(unescapedPath); - return UTF8.GetString(unescapedPath.Array, unescapedPath.Offset, length); + return UTF8.GetString(unescapedPath.Slice(0, length)); } /// @@ -40,7 +40,7 @@ namespace Microsoft.AspNetCore.HttpSys.Internal /// /// The raw path string to be unescaped /// The unescaped path string - private static ReadOnlySpan Unescape(Span rawPath) + private static Span Unescape(Span rawPath) { // the slot to read the input var reader = 0;