From ccab3140ac7452f686ee236fe55d4419768836a9 Mon Sep 17 00:00:00 2001 From: xbzhu <5430389+xbzhu@user.noreply.gitee.com> Date: Wed, 15 Feb 2023 08:15:10 +0000 Subject: [PATCH] =?UTF-8?q?update=20Infrastructure/Helper/HttpHelper.cs.?= =?UTF-8?q?=20HttpPost=20=E5=A2=9E=E5=8A=A0=E4=BA=86timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xbzhu <5430389+xbzhu@user.noreply.gitee.com> --- Infrastructure/Helper/HttpHelper.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Infrastructure/Helper/HttpHelper.cs b/Infrastructure/Helper/HttpHelper.cs index f9c042c..e7193f8 100644 --- a/Infrastructure/Helper/HttpHelper.cs +++ b/Infrastructure/Helper/HttpHelper.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Net.Http; using System.Text; @@ -21,7 +21,8 @@ namespace Infrastructure { postData = postData ?? ""; using (HttpClient client = new HttpClient()) - { + { + client.Timeout = new TimeSpan(0, 0, timeOut); if (headers != null) { foreach (var header in headers)