mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-02 06:07:21 +01:00
chore: forego the use of deprecated cel func NewIdent in favor of NewVar (#3444)
This commit is contained in:
parent
7a365af5df
commit
dfe802aed3
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ func (m *MatchExpression) Provision(_ caddy.Context) error {
|
||||||
// create the CEL environment
|
// create the CEL environment
|
||||||
env, err := cel.NewEnv(
|
env, err := cel.NewEnv(
|
||||||
cel.Declarations(
|
cel.Declarations(
|
||||||
decls.NewIdent("request", httpRequestObjectType, nil),
|
decls.NewVar("request", httpRequestObjectType),
|
||||||
decls.NewFunction(placeholderFuncName,
|
decls.NewFunction(placeholderFuncName,
|
||||||
decls.NewOverload(placeholderFuncName+"_httpRequest_string",
|
decls.NewOverload(placeholderFuncName+"_httpRequest_string",
|
||||||
[]*exprpb.Type{httpRequestObjectType, decls.String},
|
[]*exprpb.Type{httpRequestObjectType, decls.String},
|
||||||
|
|
Loading…
Reference in a new issue