0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-02-17 23:45:41 -05:00
caddy/modules/caddyhttp
Francis Lavoie 61c75f74de
caddyhttp: Explicitly disallow multiple regexp matchers (#5030)
* caddyhttp: Explicitly disallow multiple regexp matchers

Fix #5028

Since the matchers would overwrite eachother, we should error out to tell the user their config doesn't make sense.

* Update modules/caddyhttp/matchers.go

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2022-09-13 11:18:37 -06:00
..
caddyauth Remove unnecessary error check 2022-09-05 13:42:59 -06:00
encode
fileserver fileserver: Ignore EOF when browsing empty dir 2022-09-07 21:14:11 -06:00
headers
map map: Coerce val to string, fix #4987 2022-09-01 21:15:44 -06:00
push caddyhttp: Support respond with HTTP 103 Early Hints (#5006) 2022-09-05 13:50:44 -06:00
requestbody
reverseproxy reverseproxy: Close hijacked conns on reload/quit (#4895) 2022-09-02 17:01:55 -06:00
rewrite
standard
templates templates: Document httpError function (#4972) 2022-09-01 22:07:52 -06:00
tracing
app.go core: Refactor listeners; use SO_REUSEPORT on Unix (#4705) 2022-09-02 16:59:11 -06:00
autohttps.go Minor style adjustments for HTTP redir logging 2022-09-02 13:04:31 -06:00
caddyhttp.go
caddyhttp_test.go
celmatcher.go
celmatcher_test.go
errors.go
httpredirectlistener.go
marshalers.go
matchers.go caddyhttp: Explicitly disallow multiple regexp matchers (#5030) 2022-09-13 11:18:37 -06:00
matchers_test.go
metrics.go
metrics_test.go
replacer.go fileserver: Support glob expansion in file matcher (#4993) 2022-09-05 13:53:41 -06:00
replacer_test.go fileserver: Support glob expansion in file matcher (#4993) 2022-09-05 13:53:41 -06:00
responsematchers.go
responsematchers_test.go
responsewriter.go caddyhttp: ensure ResponseWriterWrapper and ResponseRecorder use ReadFrom if the underlying response writer implements it. (#5022) 2022-09-07 21:13:35 +01:00
responsewriter_test.go caddyhttp: ensure ResponseWriterWrapper and ResponseRecorder use ReadFrom if the underlying response writer implements it. (#5022) 2022-09-07 21:13:35 +01:00
routes.go
server.go Very minor tweaks 2022-09-08 13:10:40 -06:00
staticerror.go
staticresp.go caddyhttp: Support respond with HTTP 103 Early Hints (#5006) 2022-09-05 13:50:44 -06:00
staticresp_test.go
subroute.go
vars.go caddyhttp: Accept placeholders in vars matcher key 2022-09-01 16:49:18 -06:00