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

Commit 4a3cc35

Browse files
committed
Emergency bug fix (NullReferenceException)
1 parent 8699c45 commit 4a3cc35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RestSharp.Portable/ParameterExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ static class ParameterExtensions
1010
private static readonly string _alphanum = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
1111
private static readonly string _mark = "-_.!~*'()";
1212

13+
internal static readonly Encoding DefaultEncoding = Encoding.UTF8;
14+
1315
private static readonly IDictionary<byte, bool> _allowedBytes = DefaultEncoding.GetBytes(_alphanum + _mark)
1416
.ToDictionary(x => x, x => true);
1517
private static readonly IDictionary<char, bool> _allowedChars = (_alphanum + _mark).Cast<char>()
1618
.ToDictionary(x => x, x => true);
1719

18-
internal static readonly Encoding DefaultEncoding = Encoding.UTF8;
19-
2020
internal static string UrlDecode(string s)
2121
{
2222
return Uri.UnescapeDataString(s.Replace('+', ' '));

0 commit comments

Comments
 (0)