Ver código fonte

Improve HTTPServer validation

Stan 16 horas atrás
pai
commit
f3ea9f23c4
1 arquivos alterados com 2 adições e 0 exclusões
  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
 	}