1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(api): update client.Get with a new timeout parameter and default… (#2297)

* feat(api): update client.Get with a new timeout parameter and default to 5s

* fix(api): fix invalid type
This commit is contained in:
Anthony Lapenna 2018-09-24 12:09:12 +12:00 committed by GitHub
parent c3d80a1b21
commit d5dd362d53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 6 deletions

View file

@ -26,7 +26,7 @@ func (handler *Handler) templateList(w http.ResponseWriter, r *http.Request) *ht
}
} else {
var templateData []byte
templateData, err = client.Get(settings.TemplatesURL)
templateData, err = client.Get(settings.TemplatesURL, 0)
if err != nil {
return &httperror.HandlerError{http.StatusInternalServerError, "Unable to retrieve external templates", err}
}