Use refresh timeout for http
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ import (
|
||||
// fetchHTTP will make a request for an http resource
|
||||
func fetchHTTP(remoteURL string) (*http.Response, error) {
|
||||
client := &http.Client{
|
||||
Timeout: 10 * time.Second,
|
||||
Timeout: time.Duration(core.Timeout) * time.Second,
|
||||
}
|
||||
|
||||
req, err := http.NewRequestWithContext(context.Background(), "GET", remoteURL, nil)
|
||||
|
||||
Reference in New Issue
Block a user