1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00
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 requestbody: Return HTTP 413 (fix #4558) 2022-03-11 12:34:55 -07:00
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 reverseproxy: Support performing pre-check requests (#4739) 2022-05-06 10:50:26 -04:00
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 Fix #4822 and fix #4779 2022-06-01 15:12:57 -06:00
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 requestbody: Return HTTP 413 (fix #4558) 2022-03-11 12:34:55 -07:00
httpredirectlistener.go caddyhttp: Move HTTP redirect listener to an optional module (#4585) 2022-02-19 15:36:36 -07:00
marshalers.go caddyhttp: Make logging of credential headers opt-in (#4438) 2021-12-02 13:26:24 -07:00
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 move common metrics-related funcs to internal package 2022-01-25 15:07:17 -05:00
metrics_test.go move common metrics-related funcs to internal package 2022-01-25 15:07:17 -05:00
replacer.go Fix comment indentation 2022-08-25 13:28:58 -06:00
replacer_test.go caddyfile: Fix caddy fmt nesting not decrementing (#4157) 2021-05-10 12:01:27 -06:00
responsematchers.go General minor improvements to docs 2021-09-24 18:31:01 -06:00
responsematchers_test.go reverseproxy: Add handle_response blocks to reverse_proxy (#3710) (#4021) 2021-05-02 12:39:06 -06:00
responsewriter.go caddyhttp: Fix trailers when recording responses (fixes #3236) 2020-04-22 11:10:13 -06:00
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 httpcaddyfile: Add error directive for the existing handler (#4034) 2021-03-12 13:25:49 -07:00
staticresp.go caddyhttp: Set Content-Type for static response (#4999) 2022-08-31 09:43:46 -06:00
staticresp_test.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00
subroute.go reverseproxy: Enable changing only the status code (close #2920) 2020-06-04 12:06:38 -06:00
vars.go caddyhttp: Accept placeholders in vars matcher key 2022-09-01 16:49:18 -06:00