Skip to content

Commit

Permalink
fix(traefik): use latest surrogate API
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak committed Aug 8, 2024
1 parent 743a3a4 commit 677e46a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion plugins/caddy/httpcache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1046,4 +1046,3 @@ func (t *testCancelHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
time.Sleep(time.Second)
_, _ = w.Write([]byte("Hello, cancel-handler!"))
}
*/
2 changes: 1 addition & 1 deletion plugins/traefik/override/surrogate/providers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (s *baseStorage) purgeTag(tag string) []string {
}

// Store will take the lead to store the cache key for each provided Surrogate-key
func (s *baseStorage) Store(response *http.Response, cacheKey string) error {
func (s *baseStorage) Store(response *http.Response, cacheKey, uri, basekey string) error {
h := response.Header

cacheKey = url.QueryEscape(cacheKey)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 677e46a

Please sign in to comment.