Added URI-unescaping for inputs into REST requests

This commit is contained in:
Chris 2020-12-23 01:46:42 +10:30
parent 1b4dc5361c
commit 51f179f84a
4 changed files with 105 additions and 16 deletions

View file

@ -21,6 +21,9 @@ using System.Collections.Generic;
namespace Rests
{
/// <summary>
/// A dictionary collection of verbs used in a REST request
/// </summary>
[Serializable]
public class RestVerbs : Dictionary<string, string>
{
@ -35,7 +38,9 @@ namespace Rests
{
string ret;
if (TryGetValue(key, out ret))
return ret;
{
return Uri.UnescapeDataString(ret);
}
return null;
}
set
@ -56,4 +61,4 @@ namespace Rests
}
}
}
}
}