Skip to content
This repository was archived by the owner on Apr 10, 2018. It is now read-only.

Commit 321f7dc

Browse files
committed
The apostrophe must be escaped
1 parent 3fd727b commit 321f7dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

RestSharp.Portable.Core/UrlEscapeUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal class UrlEscapeUtility
2525
{ UrlEscapeFlags.AllowAllUnreserved, new HashSet<byte>(UrlUtility.Unreserved) },
2626
{ UrlEscapeFlags.AllowLikeUrlEncode, new HashSet<byte>(UrlUtility.AlphaNum.Union(Encoding.UTF8.GetBytes("-_.!*()"))) },
2727
{ UrlEscapeFlags.AllowLikeEscapeUriString, new HashSet<byte>(UrlUtility.Unreserved.Union(Encoding.UTF8.GetBytes(":&/?+#=$,;@[]"))) },
28-
{ UrlEscapeFlags.AllowLikeWebRequest, new HashSet<byte>(UrlUtility.Unreserved.Union(Encoding.UTF8.GetBytes(":"))) },
28+
{ UrlEscapeFlags.AllowLikeWebRequest, new HashSet<byte>(UrlUtility.AlphaNum.Union(Encoding.UTF8.GetBytes("-_.~")).Union(Encoding.UTF8.GetBytes(":"))) },
2929
};
3030

3131
private static readonly Dictionary<UrlEscapeFlags, EscapeBuilderDelegate> s_escapeBuilders = new Dictionary<UrlEscapeFlags, EscapeBuilderDelegate>

0 commit comments

Comments
 (0)