use user defined timeout instead

pull/253/head
Tufan Baris Yildirim 2019-09-18 13:39:10 +03:00
parent 1140dfa213
commit a6718f8843
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: 30 * time.Second,
KeepAlive: 30 * time.Second,
Timeout: timeout * time.Second,
KeepAlive: timeout * time.Second,
}
transport := &http.Transport{