From 93feda2b8a377b2f671522036583d4fac114aa43 Mon Sep 17 00:00:00 2001 From: Troy Dai Date: Tue, 6 Sep 2016 10:59:04 -0700 Subject: [PATCH] Rename parameter name in RequestUriBuilder --- .../RequestProcessing/RequestUriBuilder.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.Net.Http.Server/RequestProcessing/RequestUriBuilder.cs b/src/Microsoft.Net.Http.Server/RequestProcessing/RequestUriBuilder.cs index ce148f0cae..df07d502c2 100644 --- a/src/Microsoft.Net.Http.Server/RequestProcessing/RequestUriBuilder.cs +++ b/src/Microsoft.Net.Http.Server/RequestProcessing/RequestUriBuilder.cs @@ -37,19 +37,19 @@ namespace Microsoft.Net.Http.Server encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true); - public static string DecodeAndUnescapePath(byte[] urlInBytes) + public static string DecodeAndUnescapePath(byte[] rawUrlBytes) { - if (urlInBytes == null) + if (rawUrlBytes == null) { - throw new ArgumentNullException(nameof(urlInBytes)); + throw new ArgumentNullException(nameof(rawUrlBytes)); } - if (urlInBytes.Length == 0) + if (rawUrlBytes.Length == 0) { - throw new ArgumentException("Length of the URL cannot be zero.", nameof(urlInBytes)); + throw new ArgumentException("Length of the URL cannot be zero.", nameof(rawUrlBytes)); } - var rawPath = RawUrlHelper.GetPath(urlInBytes); + var rawPath = RawUrlHelper.GetPath(rawUrlBytes); var unescapedPath = Unescape(rawPath);