Browse Source

chore: forego the use of deprecated cel func NewIdent in favor of NewVar (#3444)

master
Mohammed Al Sahaf 5 years ago
committed by GitHub
parent
commit
dfe802aed3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/caddyhttp/celmatcher.go

2
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},

Loading…
Cancel
Save