summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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)