mirror of https://github.com/statping/statping
fix timeout value
parent
8c05d7e7c5
commit
206a90cc08
|
@ -301,8 +301,8 @@ func HttpRequest(url, method string, content interface{}, headers []string, body
|
||||||
var resp *http.Response
|
var resp *http.Response
|
||||||
|
|
||||||
dialer := &net.Dialer{
|
dialer := &net.Dialer{
|
||||||
Timeout: timeout * time.Second,
|
Timeout: timeout,
|
||||||
KeepAlive: timeout * time.Second,
|
KeepAlive: timeout,
|
||||||
}
|
}
|
||||||
|
|
||||||
transport := &http.Transport{
|
transport := &http.Transport{
|
||||||
|
|
Loading…
Reference in New Issue