caddy/modules/caddyhttp
Matthew Holt 7c35bfa57c
caddyhttp: Accept placeholders in vars matcher key
Until now, the vars matcher has unintentionally lacked parity with the
map directive: the destination placeholders of the map directive would
be expressed as placeholders, i.e. {foo}. But the vars matcher would
not use { }: vars foo value

This looked weird, and was confusing, since it implied that the key
could be dynamic, which doesn't seem helpful here.

I think this is a proper bug fix, since we're not used to accessing
placeholders literally without { } in the Caddyfile.
2022-09-01 16:49:18 -06:00
..
caddyauth chore: Bump up to Go 1.19, minimum 1.18 (#4925) 2022-08-02 16:39:09 -04:00
encode zstd: fix typo in comment (#4985) 2022-08-25 12:00:05 +03:00
fileserver caddyhttp: Smarter path matching and rewriting (#4948) 2022-08-16 08:48:57 -06:00
headers headers: Only replace known placeholders (#4880) 2022-07-12 12:16:03 -06:00
map chore: Bump up to Go 1.19, minimum 1.18 (#4925) 2022-08-02 16:39:09 -04:00
push Replace strings.Index usages with strings.Cut (#4930) 2022-08-04 11:17:35 -06:00
requestbody
…
reverseproxy events: Implement event system (#4912) 2022-08-31 15:01:30 -06:00
rewrite caddyhttp: Smarter path matching and rewriting (#4948) 2022-08-16 08:48:57 -06:00
standard
…
templates templates: cap of slice should not be smaller than length (#4975) 2022-08-23 08:26:02 -06:00
tracing cmd: Use newly-available version information (#4931) 2022-08-04 11:16:59 -06:00
app.go events: Implement event system (#4912) 2022-08-31 15:01:30 -06:00
autohttps.go
…
caddyhttp.go caddyhttp: Smarter path matching and rewriting (#4948) 2022-08-16 08:48:57 -06:00
caddyhttp_test.go caddyhttp: Smarter path matching and rewriting (#4948) 2022-08-16 08:48:57 -06:00
celmatcher.go chore: Bump up to Go 1.19, minimum 1.18 (#4925) 2022-08-02 16:39:09 -04:00
celmatcher_test.go Expose several Caddy HTTP Matchers to the CEL Matcher (#4715) 2022-06-22 18:53:46 -04:00
errors.go
…
httpredirectlistener.go
…
marshalers.go
…
matchers.go core: Change net.IP to netip.Addr; use netip.Prefix (#4966) 2022-08-17 16:10:57 -06:00
matchers_test.go caddyhttp: Smarter path matching and rewriting (#4948) 2022-08-16 08:48:57 -06:00
metrics.go
…
metrics_test.go
…
replacer.go Fix comment indentation 2022-08-25 13:28:58 -06:00
replacer_test.go
…
responsematchers.go
…
responsematchers_test.go
…
responsewriter.go
…
routes.go chore: Bump up to Go 1.19, minimum 1.18 (#4925) 2022-08-02 16:39:09 -04:00
server.go core: Plugins can register listener networks (#5002) 2022-09-01 16:30:03 -06:00
staticerror.go
…
staticresp.go caddyhttp: Set Content-Type for static response (#4999) 2022-08-31 09:43:46 -06:00
staticresp_test.go
…
subroute.go
…
vars.go caddyhttp: Accept placeholders in vars matcher key 2022-09-01 16:49:18 -06:00