Przeglądaj źródła

Improve HTTPServer validation

Stan 20 godzin temu
rodzic
commit
78111c523b
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 	}