Ver Fonte

Improve HTTPServer validation

Stan há 16 horas atrás
pai
commit
78111c523b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      http_server.go

+ 1 - 1
http_server.go

@@ -298,7 +298,7 @@ func validateData(handler HTTPServerHandler) bool {
 	}
 
 	value := reflect.ValueOf(handler.Data)
-	if value.Kind() != reflect.Interface {
+	if value.Kind() != reflect.Ptr {
 		return true
 	}