mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
b82db994f3
* caddyfile: Add parse error on site address in `{` This is an incredibly common mistake made by users, so we should catch it earlier in the parser and give a more friendly message. Often it ends up adapting but with mistakes, or erroring out later due to other site addresses being read as directives. There's not really ever a situation where a lone '{' is valid at the end of a site address (but I suppose there are edgecases where the user wants to use a path matcher where it ends specifically in `{`, but... why?), so this should be fine. * Update caddyconfig/caddyfile/parse.go |
||
---|---|---|
.. | ||
testdata | ||
adapter.go | ||
dispenser.go | ||
dispenser_test.go | ||
formatter.go | ||
formatter_fuzz.go | ||
formatter_test.go | ||
importgraph.go | ||
lexer.go | ||
lexer_fuzz.go | ||
lexer_test.go | ||
parse.go | ||
parse_test.go |