diff --git a/.github/workflows/generate_release.sh b/.github/workflows/generate_release.sh index 31c972a05..4e1df0880 100755 --- a/.github/workflows/generate_release.sh +++ b/.github/workflows/generate_release.sh @@ -1,6 +1,6 @@ #!/bin/bash -plugins=("beego" "caddy" "chi" "dotweb" "echo" "fiber" "gin" "go-zero" "goa" "goyave" "hertz" "kratos" "roadrunner" "skipper" "souin" "traefik" "tyk" "webgo") +plugins=("beego" "caddy" "chi" "dotweb" "echo" "fiber" "gin" "go-zero" "goa" "goyave" "hertz" "kratos" "roadrunner" "skipper" "souin" "souin/storages" "traefik" "tyk" "webgo") IFS= read -r -d '' tpl < ../../.. require ( - github.com/darkweak/souin v1.6.49 + github.com/darkweak/souin v1.6.50 github.com/darkweak/storages/badger v0.0.8 github.com/darkweak/storages/core v0.0.8 github.com/darkweak/storages/etcd v0.0.8 diff --git a/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/akamai.go b/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/akamai.go index d33455b79..1efef7298 100644 --- a/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/akamai.go +++ b/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/akamai.go @@ -39,12 +39,12 @@ func (*AkamaiSurrogateStorage) getHeaderSeparator() string { } // Store stores the response tags located in the first non empty supported header -func (a *AkamaiSurrogateStorage) Store(response *http.Response, cacheKey, uri, basekey string) error { +func (a *AkamaiSurrogateStorage) Store(response *http.Response, cacheKey, uri string) error { defer func() { response.Header.Del(surrogateKey) response.Header.Del(surrogateControl) }() - e := a.baseStorage.Store(response, cacheKey, uri, basekey) + e := a.baseStorage.Store(response, cacheKey, uri) response.Header.Set(edgeCacheTag, response.Header.Get(surrogateKey)) return e diff --git a/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/cloudflare.go b/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/cloudflare.go index d733347b8..83a50f13f 100644 --- a/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/cloudflare.go +++ b/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/cloudflare.go @@ -38,12 +38,12 @@ func (*CloudflareSurrogateStorage) getHeaderSeparator() string { } // Store stores the response tags located in the first non empty supported header -func (c *CloudflareSurrogateStorage) Store(response *http.Response, cacheKey, uri, basekey string) error { +func (c *CloudflareSurrogateStorage) Store(response *http.Response, cacheKey, uri string) error { defer func() { response.Header.Del(surrogateKey) response.Header.Del(surrogateControl) }() - e := c.baseStorage.Store(response, cacheKey, uri, basekey) + e := c.baseStorage.Store(response, cacheKey, uri) response.Header.Set(cacheTag, strings.Join(c.ParseHeaders(response.Header.Get(surrogateKey)), c.getHeaderSeparator())) return e diff --git a/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/types.go b/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/types.go index 999fe90ff..9f012ddb2 100644 --- a/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/types.go +++ b/plugins/traefik/vendor/github.com/darkweak/souin/pkg/surrogate/providers/types.go @@ -16,7 +16,7 @@ type SurrogateInterface interface { Purge(http.Header) (cacheKeys []string, surrogateKeys []string) Invalidate(method string, h http.Header) purgeTag(string) []string - Store(*http.Response, string, string, string) error + Store(*http.Response, string, string) error storeTag(string, string, *regexp.Regexp) ParseHeaders(string) []string List() map[string]string