File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public static string UrlEncode(this string input)
55
55
throw new ArgumentNullException ( "input" ) ;
56
56
57
57
if ( input . Length <= maxLength )
58
- return Uri . EscapeUriString ( input ) ;
58
+ return Uri . EscapeDataString ( input ) ;
59
59
60
60
StringBuilder sb = new StringBuilder ( input . Length * 2 ) ;
61
61
int index = 0 ;
@@ -65,7 +65,7 @@ public static string UrlEncode(this string input)
65
65
int length = Math . Min ( input . Length - index , maxLength ) ;
66
66
string subString = input . Substring ( index , length ) ;
67
67
68
- sb . Append ( Uri . EscapeUriString ( subString ) ) ;
68
+ sb . Append ( Uri . EscapeDataString ( subString ) ) ;
69
69
index += subString . Length ;
70
70
}
71
71
Original file line number Diff line number Diff line change 19
19
using System . IO ;
20
20
using System . Linq ;
21
21
using System . Net ;
22
- using System . Security . Cryptography . X509Certificates ;
23
22
using System . Text ;
24
23
using RestSharp . Extensions ;
25
24
You can’t perform that action at this time.
0 commit comments