Explorar o código

Improve HTTPServer validation

Stan hai 16 horas
pai
achega
f3ea9f23c4
Modificáronse 1 ficheiros con 2 adicións e 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
 	}