diff --git a/Code/DockActionStrategy/RestSharpHelper.cs b/Code/DockActionStrategy/RestSharpHelper.cs index b0d3bcb64b88fd982bf752c17ccdccef3e63dc3d..3a7b8fb056bfeb6fe3753e505492467938c8711f 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时,出现:基础连接已经关闭: 发送时发生错误