Explorar el Código

Improve HTTPServer validation

Stan hace 16 horas
padre
commit
f3ea9f23c4
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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
 	}