diff options
author | Francis Lavoie <lavofr@gmail.com> | 2021-09-11 16:12:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 14:12:21 -0600 |
commit | a779e1b38390205e8286a0578042646d858039a5 (patch) | |
tree | b80c9bd5d4e2bd278553f1fd5ab2f669ec97152e /modules/caddyhttp/reverseproxy/fastcgi | |
parent | 46ab93be51754ac16bd7c59443e90481acf83022 (diff) |
fastcgi: Fix Caddyfile parsing when `handle_response` is used (#4342)
Diffstat (limited to 'modules/caddyhttp/reverseproxy/fastcgi')
-rw-r--r-- | modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go index 0ccd9fe..da1c92d 100644 --- a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go +++ b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go @@ -192,7 +192,7 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error // NOTE: we delete the tokens as we go so that the reverse_proxy // unmarshal doesn't see these subdirectives which it cannot handle for dispenser.Next() { - for dispenser.NextBlock(0) { + for dispenser.NextBlock(0) && dispenser.Nesting() == 1 { switch dispenser.Val() { case "root": if !dispenser.NextArg() { |