Route arguments are now automatically url decoded by the RouteMatcher. Added a unit test to cover this case. Bumped package version to 1.1.8
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<AssemblyName>MontoyaTech.Rest.Net</AssemblyName>
|
||||
<RootNamespace>MontoyaTech.Rest.Net</RootNamespace>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
<Version>1.1.7</Version>
|
||||
<Version>1.1.8</Version>
|
||||
<PackageReleaseNotes></PackageReleaseNotes>
|
||||
<PackageIcon>Logo_Symbol_Black_Outline.png</PackageIcon>
|
||||
</PropertyGroup>
|
||||
|
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Net;
|
||||
|
||||
namespace MontoyaTech.Rest.Net
|
||||
{
|
||||
@@ -121,7 +122,7 @@ namespace MontoyaTech.Rest.Net
|
||||
}
|
||||
else if (condition.StartsWith("{") && condition.EndsWith("}"))
|
||||
{
|
||||
arguments[argumentIndex++] = urlSegment;
|
||||
arguments[argumentIndex++] = WebUtility.UrlDecode(urlSegment);
|
||||
|
||||
match = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user