diff options
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,8 +6,8 @@ import ( "time" ) -func HttpStatusOK(url string, status int) error { - client := &http.Client{Timeout: 5 * time.Second} +func HttpStatusOK(url string, timeout, status int) error { + client := &http.Client{Timeout: time.Duration(timeout) * time.Second} resp, err := client.Get(url) |
