Rename parameter name in RequestUriBuilder

This commit is contained in:
Troy Dai 2016-09-06 10:59:04 -07:00
parent 100beaaf94
commit 93feda2b8a
1 changed files with 6 additions and 6 deletions

View File

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