commit | a4e649a6cfc75023763e4712833bb71bed734104 | [log] [tgz] |
---|---|---|
author | Will Silberman <wsilberm@google.com> | Tue Apr 17 10:53:00 2018 -0700 |
committer | Will Silberman <wsilberm@google.com> | Tue Apr 17 10:53:00 2018 -0700 |
tree | a69cf7db08580a607ff68331ca03169006c8879e | |
parent | faee644639973ab17c7d098ba56280c4d5fee213 [diff] |
http client to have 10 second timeout
diff --git a/api/api.go b/api/api.go index f4cf08b..90c69ff 100644 --- a/api/api.go +++ b/api/api.go
@@ -95,6 +95,7 @@ } return &HTTPConnection{ client: &http.Client{ + Timeout: 10 * time.Second, Transport: &http.Transport{TLSClientConfig: config}, }, credentials: "Basic " + base64.StdEncoding.EncodeToString([]byte(usernamePassword)),