fix timeout value

pull/253/head
Tufan Baris Yildirim 2019-09-22 16:36:40 +03:00
parent 8c05d7e7c5
commit 206a90cc08
1 changed files with 2 additions and 2 deletions

View File

@ -301,8 +301,8 @@ func HttpRequest(url, method string, content interface{}, headers []string, body
var resp *http.Response
dialer := &net.Dialer{
Timeout: timeout * time.Second,
KeepAlive: timeout * time.Second,
Timeout: timeout,
KeepAlive: timeout,
}
transport := &http.Transport{