Added URI-unescaping for inputs into REST requests
This commit is contained in:
parent
1b4dc5361c
commit
51f179f84a
4 changed files with 105 additions and 16 deletions
|
|
@ -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
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue