summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/caddyhttp/celmatcher.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/celmatcher.go b/modules/caddyhttp/celmatcher.go
index a226352..6c9cc96 100644
--- a/modules/caddyhttp/celmatcher.go
+++ b/modules/caddyhttp/celmatcher.go
@@ -94,7 +94,7 @@ func (m *MatchExpression) Provision(_ caddy.Context) error {
// create the CEL environment
env, err := cel.NewEnv(
cel.Declarations(
- decls.NewIdent("request", httpRequestObjectType, nil),
+ decls.NewVar("request", httpRequestObjectType),
decls.NewFunction(placeholderFuncName,
decls.NewOverload(placeholderFuncName+"_httpRequest_string",
[]*exprpb.Type{httpRequestObjectType, decls.String},