diff options
author | Mohammed Al Sahaf <msaa1990@gmail.com> | 2020-05-25 06:59:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 03:59:38 +0000 |
commit | dfe802aed3d6f463bde3c7dde00497c1277eb35c (patch) | |
tree | a73722cfe5fa667f69533812bf79ecb2310bd54d /modules/caddyhttp | |
parent | 7a365af5df3fd6fec2e1e9013e493fa7769260ce (diff) |
chore: forego the use of deprecated cel func NewIdent in favor of NewVar (#3444)
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r-- | modules/caddyhttp/celmatcher.go | 2 |
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}, |