From 80d33771875cf31efe1cf3a8b094610148a79e58 Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Sun, 29 Dec 2024 14:42:22 -0500 Subject: [PATCH] Recursively resolve pointer --- internal/forms/unmarshal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/forms/unmarshal.go b/internal/forms/unmarshal.go index 7691fc5..39730e5 100644 --- a/internal/forms/unmarshal.go +++ b/internal/forms/unmarshal.go @@ -261,7 +261,7 @@ func (o *options) unmIterFields(r *http.Request, destStruct reflect.Value) error continue } - if destFieldType.Kind() == reflect.Ptr { + for destFieldType.Kind() == reflect.Ptr { destFieldType = destFieldType.Elem() } if reflect.ValueOf(ff).CanConvert(destFieldType) {