diff options
author | Francis Lavoie <lavofr@gmail.com> | 2023-04-20 14:43:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 18:43:51 +0000 |
commit | 53b6fab125f3f2f149d59fcfe13b1e8b1735da56 (patch) | |
tree | 242a8e721d7ea6fe5c8dddbd090e08ec74d27da0 /modules/caddyhttp/reverseproxy/forwardauth | |
parent | c6ac350a3b53feb1dfcc24d82421cd20da61a163 (diff) |
caddyfile: Stricter parsing, error for brace on new line (#5505)
Diffstat (limited to 'modules/caddyhttp/reverseproxy/forwardauth')
-rw-r--r-- | modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go b/modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go index dbd2a29..8350096 100644 --- a/modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go +++ b/modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go @@ -216,6 +216,7 @@ func parseCaddyfile(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error) // the rest of the config is specified by the user // using the reverse_proxy directive syntax + dispenser.Next() // consume the directive name err = rpHandler.UnmarshalCaddyfile(dispenser) if err != nil { return nil, err |