File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ private async void MakeStringRequest(WebData webData)
199199 {
200200 HttpWebRequest request = WebRequest . CreateHttp ( webData . URL ) ;
201201 request . Method = webData . IsGet ? WebRequestMethods . Http . Get : WebRequestMethods . Http . Post ;
202- request . Timeout = ( int ) RequestTimeout . TotalSeconds ; // 设置请求超时时间
202+ request . Timeout = ( int ) RequestTimeout . TotalMilliseconds ; // 设置请求超时时间
203203 if ( webData . Form != null && webData . Form . Count > 0 )
204204 {
205205 request . ContentType = "application/json" ;
@@ -304,7 +304,7 @@ private async void MakeBytesRequest(WebData webData)
304304 {
305305 HttpWebRequest request = WebRequest . CreateHttp ( webData . URL ) ;
306306 request . Method = webData . IsGet ? WebRequestMethods . Http . Get : WebRequestMethods . Http . Post ;
307- request . Timeout = ( int ) RequestTimeout . TotalSeconds ; // 设置请求超时时间
307+ request . Timeout = ( int ) RequestTimeout . TotalMilliseconds ; // 设置请求超时时间
308308 if ( webData . Header != null && webData . Header . Count > 0 )
309309 {
310310 foreach ( var kv in webData . Header )
You can’t perform that action at this time.
0 commit comments