@marcel91200 / caddy Mirror · read-only / commits / 0f209f62
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 23:30 UTC

httpcaddyfile: reject blocks in log_skip directive (#7056)

Hina🐣 | Developer committed Jun 10, 2025 at 12:56 UTC 0f209f62eb1f33e67070ada7fa6f4a7899b8e99d
1 file changed +5
caddyconfig/httpcaddyfile/builtins.go
+5
@@ -1166,6 +1166,11 @@ func parseLogSkip(h Helper) (caddyhttp.MiddlewareHandler, error) {
1166 if h.NextArg() {
1167 return nil, h.ArgErr()
1168 }
1169 +
1170 + if h.NextBlock(0) {
1171 + return nil, h.Err("log_skip directive does not accept blocks")
1172 + }
1173 +
1174 return caddyhttp.VarsMiddleware{"log_skip": true}, nil
1175 }
1176