Skip to content

Commit

Permalink
encode query params
Browse files Browse the repository at this point in the history
  • Loading branch information
izharikov committed Jun 5, 2024
1 parent c28df93 commit 3e873f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Globalization;
using System.Net;
using System.Net.Http;
using System.Net.Http.Json;
using System.Text;
Expand Down Expand Up @@ -45,7 +46,7 @@ protected string Url(string baseUrl, params object?[] queryParams)
!string.IsNullOrEmpty(queryParams[i + 1]?.ToString()))
{
result.Append('&').Append(queryParams[i]).Append('=')
.Append(queryParams[i + 1]);
.Append(WebUtility.UrlEncode(queryParams[i + 1]?.ToString()));
}
}

Expand Down

0 comments on commit 3e873f2

Please sign in to comment.