mirror of
https://github.com/caddyserver/caddy.git
synced 2026-10-06 13:47:07 +00:00
caddyfile: Stricter parsing, error for brace on new line (#5505)
This commit is contained in:
parent
c6ac350a3b
commit
53b6fab125
5 changed files with 533 additions and 521 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -373,6 +373,7 @@ func parsePHPFastCGI(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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue