|
@@ -104,7 +104,7 @@ namespace TEAMModelOS.SDK.Helper.Network.HttpHelper
|
|
|
/// <param name="timeout">请求响应超时时间,单位/s(默认100秒)</param>
|
|
|
/// <param name="encoding">默认UTF8</param>
|
|
|
/// <returns></returns>
|
|
|
- public static async Task<string> HttpPostAsync(string url, string postData, Dictionary<string, string> headers = null, string contentType = null, int timeout = 0, Encoding encoding = null)
|
|
|
+ public static async Task<string> HttpPostAsync(string url, string postData, Dictionary<string, string> headers = null, string contentType = "application/json", int timeout = 1000, Encoding encoding = null)
|
|
|
{
|
|
|
HttpClient client = new HttpClient();
|
|
|
if (headers != null)
|