From 185362b2afb1d2fd2cb8352b220e311afede855a Mon Sep 17 00:00:00 2001 From: Catcher Wong Date: Thu, 11 Jul 2024 10:09:28 +0800 Subject: [PATCH] Fix naming http signature (#297) (#298) * fix namint http signature error * update version to 1.3.7 --------- Signed-off-by: catcherwong --- build/version.props | 2 +- src/Nacos/V2/Common/Constants.cs | 2 +- src/Nacos/V2/Naming/Remote/Http/NamingHttpClientProxy.cs | 4 ++-- src/Nacos/V2/Utils/StringUtil.cs | 3 +++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build/version.props b/build/version.props index 38f02c7a..843d7247 100644 --- a/build/version.props +++ b/build/version.props @@ -1,5 +1,5 @@ - 1.3.6 + 1.3.7 diff --git a/src/Nacos/V2/Common/Constants.cs b/src/Nacos/V2/Common/Constants.cs index 6613b818..1e5524a0 100644 --- a/src/Nacos/V2/Common/Constants.cs +++ b/src/Nacos/V2/Common/Constants.cs @@ -2,7 +2,7 @@ { public class Constants { - public static string CLIENT_VERSION = "Nacos-CSharp-Client:v1.3.5"; + public static string CLIENT_VERSION = "Nacos-CSharp-Client:v1.3.7"; public const string ClientName = "NacosClient"; diff --git a/src/Nacos/V2/Naming/Remote/Http/NamingHttpClientProxy.cs b/src/Nacos/V2/Naming/Remote/Http/NamingHttpClientProxy.cs index e0be324a..27c93b22 100644 --- a/src/Nacos/V2/Naming/Remote/Http/NamingHttpClientProxy.cs +++ b/src/Nacos/V2/Naming/Remote/Http/NamingHttpClientProxy.cs @@ -493,7 +493,7 @@ private string InitParams(Dictionary dict, Dictionary dict, Dictionary !string.IsNullOrWhiteSpace(str); + + public static string UrlEncode(this string str) + => System.Net.WebUtility.UrlEncode(str); } }