Parcourir la source

Improve HTTPServer validation

Stan il y a 17 heures
Parent
commit
f3ea9f23c4
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      http_server.go

+ 2 - 0
http_server.go

@@ -298,11 +298,13 @@ func validateData(handler HTTPServerHandler) bool {
 	}
 
 	value := reflect.ValueOf(handler.Data)
+	fmt.Println(value.Kind())
 	if value.Kind() != reflect.Ptr {
 		return true
 	}
 
 	value = value.Elem()
+	fmt.Println(value.Kind())
 	if value.Kind() != reflect.Struct {
 		return true
 	}