Skip to content

Commit

Permalink
fix(traefik): parse "mode" configuration parameter in Traefik plugin (#…
Browse files Browse the repository at this point in the history
…412)

Co-authored-by: Alberto Tablado <[email protected]>
  • Loading branch information
aluki and Alberto Tablado authored Nov 13, 2023
1 parent b4b25aa commit 4bb1371
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/traefik/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ func parseConfiguration(c map[string]interface{}) Configuration {
dc.Headers = parseStringSlice(defaultCacheV)
case "key":
dc.Key = configCacheKey(defaultCacheV.(map[string]interface{}))
case "mode":
dc.Mode = defaultCacheV.(string)
case "regex":
exclude := defaultCacheV.(map[string]interface{})["exclude"].(string)
if exclude != "" {
Expand Down

0 comments on commit 4bb1371

Please sign in to comment.