summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-03-20 08:53:40 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-03-20 08:53:40 -0600
commit903776238ebc559c6ed003613a7f7a4d6ceb809a (patch)
tree99cad67ff9b238ba0ce20585e8b4d0718d796c75 /modules/caddyhttp
parentf741ab346317baa2dc06ad1217ea60ed963ef00b (diff)
go.mod: Update some deps; add new Strings lib to CEL matcher
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/celmatcher.go2
1 files changed, 2 insertions, 0 deletions
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)