fix: Replace ioutil.ReadAll with io.ReadAll

- Fix undefined ioutil error
- Use io.ReadAll from io package (Go 1.16+)
This commit is contained in:
2025-10-18 22:27:53 +00:00
parent 7631e34f2d
commit af625c7950

View File

@@ -600,7 +600,7 @@ func (h *PlayersHandler) GetHDVBPlayer(w http.ResponseWriter, r *http.Request) {
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
log.Printf("Error reading HDVB response: %v", err)
http.Error(w, "Failed to read player data", http.StatusInternalServerError)