diff options
author | Francis Lavoie <lavofr@gmail.com> | 2021-12-13 13:42:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-13 13:42:08 -0500 |
commit | 81ee34e9623c3ac630f46c81a26e7823d0b2bf7b (patch) | |
tree | 6c32a15a3fbe5f631728b7b4b4f3a47415f02fd5 /caddyconfig/httpcaddyfile/directives.go | |
parent | 78b5356f2b1945a90de1ef7f2c7669d82098edbd (diff) |
httpcaddyfile: Fix sorting edgecase for nested `handle_path` (#4477)
Diffstat (limited to 'caddyconfig/httpcaddyfile/directives.go')
-rw-r--r-- | caddyconfig/httpcaddyfile/directives.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/caddyconfig/httpcaddyfile/directives.go b/caddyconfig/httpcaddyfile/directives.go index 9da205e..8d895dd 100644 --- a/caddyconfig/httpcaddyfile/directives.go +++ b/caddyconfig/httpcaddyfile/directives.go @@ -340,6 +340,9 @@ func parseSegmentAsConfig(h Helper) ([]ConfigValue, error) { if err != nil { return nil, h.Errf("parsing caddyfile tokens for '%s': %v", dir, err) } + + dir = normalizeDirectiveName(dir) + for _, result := range results { result.directive = dir allResults = append(allResults, result) |