mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-26 19:58:48 +01:00
fix accept headers and switch default interval to 24h
This commit is contained in:
parent
24cf0fd6a3
commit
89d57d2599
6 changed files with 41 additions and 30 deletions
|
|
@ -83,7 +83,8 @@ func GetDigest(url string, token string) (string, error) {
|
|||
req, _ := http.NewRequest("HEAD", url, nil)
|
||||
req.Header.Add("Authorization", token)
|
||||
req.Header.Add("Accept", "application/vnd.docker.distribution.manifest.v2+json")
|
||||
req.Header.Add("Accept", "*/*")
|
||||
req.Header.Add("Accept", "application/vnd.docker.distribution.manifest.list.v2+json")
|
||||
req.Header.Add("Accept", "application/vnd.docker.distribution.manifest.v1+json")
|
||||
|
||||
logrus.WithField("url", url).Debug("Doing a HEAD request to fetch a digest")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue