Skip to content

Commit 9b3fbcd

Browse files
fix QueryHelpers dependencies 🔨
1 parent 0f32f64 commit 9b3fbcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Src/Notion.Client/http/QueryHelpers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Net;
45
using System.Text;
5-
using System.Text.Encodings.Web;
66

77
namespace Notion.Client.http
88
{
@@ -77,9 +77,9 @@ private static string AddQueryString(
7777
foreach (var parameter in queryParams)
7878
{
7979
sb.Append(hasQuery ? '&' : '?');
80-
sb.Append(UrlEncoder.Default.Encode(parameter.Key));
80+
sb.Append(WebUtility.UrlEncode(parameter.Key));
8181
sb.Append('=');
82-
sb.Append(UrlEncoder.Default.Encode(parameter.Value));
82+
sb.Append(WebUtility.UrlEncode(parameter.Value));
8383
hasQuery = true;
8484
}
8585

0 commit comments

Comments
 (0)