mirror of
https://github.com/wahyd4/caddy.git
synced 2026-08-09 05:16:13 +10:00
chore: forego the use of deprecated cel func NewIdent in favor of NewVar (#3444)
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user