Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 19:45 UTC
refactor: use reflect.TypeFor (#7313)
Signed-off-by: wyrapeseed <wyrapeseed@outlook.com>
wyrapeseed committed
Oct 22, 2025 at 03:26 UTC
57587ed18e3908931b4f7bfd73078c47082fb742
1 file changed
+1
-1
modules/caddyhttp/celmatcher.go
+1
-1
@@ -665,7 +665,7 @@ func celMatcherJSONMacroExpander(funcName string) parser.MacroExpander {
665
// map literals containing heterogeneous values, in this case string and list
666
// of string.
667
func CELValueToMapStrList(data ref.Val) (map[string][]string, error) {
668
- mapStrType := reflect.TypeOf(map[string]any{})
668
+ mapStrType := reflect.TypeFor[map[string]any]()
669
mapStrRaw, err := data.ConvertToNative(mapStrType)
670
if err != nil {
671
return nil, err