From 8fa676b068b7a5b084a59af430f0f8d36c3e1004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=8CTomLiu?= <154212896@qq.com> Date: Wed, 19 Mar 2025 14:59:13 +0000 Subject: [PATCH] update Code/DockActionStrategy/RestSharpHelper.cs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ‌TomLiu <154212896@qq.com> --- Code/DockActionStrategy/RestSharpHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/DockActionStrategy/RestSharpHelper.cs b/Code/DockActionStrategy/RestSharpHelper.cs index b0d3bcb..3a7b8fb 100644 --- a/Code/DockActionStrategy/RestSharpHelper.cs +++ b/Code/DockActionStrategy/RestSharpHelper.cs @@ -1,4 +1,4 @@ -using System.Net; +using System.Net; using UFIDA.U9.Cust.Pub.RestSharp; namespace UFIDA.U9.Cust.Pub.DockActionStrategy @@ -28,6 +28,7 @@ namespace UFIDA.U9.Cust.Pub.DockActionStrategy client.AddHandler("text/x-json", NewtonJsonSerializer.Default); client.AddHandler("text/javascript", NewtonJsonSerializer.Default); client.AddHandler("*+json", NewtonJsonSerializer.Default); + client.AddHandler("application/x-javascript", NewtonJsonSerializer.Default); if (systemURI.ToLower().StartsWith("https")) { //请求https时,出现:基础连接已经关闭: 发送时发生错误 -- Gitee