From dfe802aed3d6f463bde3c7dde00497c1277eb35c Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Mon, 25 May 2020 06:59:38 +0300 Subject: chore: forego the use of deprecated cel func NewIdent in favor of NewVar (#3444) --- modules/caddyhttp/celmatcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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}, -- cgit v1.2.3