From 903776238ebc559c6ed003613a7f7a4d6ceb809a Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 20 Mar 2020 08:53:40 -0600 Subject: go.mod: Update some deps; add new Strings lib to CEL matcher --- modules/caddyhttp/celmatcher.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/caddyhttp') diff --git a/modules/caddyhttp/celmatcher.go b/modules/caddyhttp/celmatcher.go index fcedea4..a78bd9c 100644 --- a/modules/caddyhttp/celmatcher.go +++ b/modules/caddyhttp/celmatcher.go @@ -29,6 +29,7 @@ import ( "github.com/google/cel-go/common/types" "github.com/google/cel-go/common/types/ref" "github.com/google/cel-go/common/types/traits" + "github.com/google/cel-go/ext" "github.com/google/cel-go/interpreter/functions" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) @@ -88,6 +89,7 @@ func (m *MatchExpression) Provision(_ caddy.Context) error { decls.String)), ), cel.CustomTypeAdapter(celHTTPRequestTypeAdapter{}), + ext.Strings(), ) if err != nil { return fmt.Errorf("setting up CEL environment: %v", err) -- cgit v1.2.3