mirror of
https://gitlab.com/foxixus/neomovies-api.git
synced 2025-10-27 17:38:51 +05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user