diff --git a/curl/request.go b/curl/request.go index 44787f9..f3c6fbc 100644 --- a/curl/request.go +++ b/curl/request.go @@ -164,7 +164,7 @@ func getHttpClient(apiConfig *ApiRequestConfig, header map[string]string) *httpc fullHeader["content-type"] = apiConfig.ContentType return httpclient.NewHttpClient().WithHeaders(fullHeader). WithOption(httpclient.OPT_CONNECTTIMEOUT_MS, time.Duration(apiConfig.Timeout.Connect)*time.Millisecond). - WithOption(httpclient.OPT_TIMEOUT, time.Duration(apiConfig.Timeout.Read)*time.Millisecond) + WithOption(httpclient.OPT_TIMEOUT_MS, time.Duration(apiConfig.Timeout.Read)*time.Millisecond) } // buildRequestURLAndParam 构建完整请求URL与请求参数