Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
chore: forego the use of deprecated cel func NewIdent in favor of NewVar (#3444)
Mohammed Al Sahaf committed
May 25, 2020 at 06:59 UTC
dfe802aed3d6f463bde3c7dde00497c1277eb35c
1 file changed
+1
-1
modules/caddyhttp/celmatcher.go
+1
-1
@@ -94,7 +94,7 @@ func (m *MatchExpression) Provision(_ caddy.Context) error {
94
// create the CEL environment
95
env, err := cel.NewEnv(
96
cel.Declarations(
97
- decls.NewIdent("request", httpRequestObjectType, nil),
97
+ decls.NewVar("request", httpRequestObjectType),
98
decls.NewFunction(placeholderFuncName,
99
decls.NewOverload(placeholderFuncName+"_httpRequest_string",
100
[]*exprpb.Type{httpRequestObjectType, decls.String},