summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMohammed Al Sahaf <msaa1990@gmail.com>2020-05-25 06:59:38 +0300
committerGitHub <noreply@github.com>2020-05-25 03:59:38 +0000
commitdfe802aed3d6f463bde3c7dde00497c1277eb35c (patch)
treea73722cfe5fa667f69533812bf79ecb2310bd54d /modules
parent7a365af5df3fd6fec2e1e9013e493fa7769260ce (diff)
chore: forego the use of deprecated cel func NewIdent in favor of NewVar (#3444)
Diffstat (limited to 'modules')
-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},