qbittorrent/exporter: Replace deprecated calls

Simon Bruder 2024-01-13 15:38:25 +01:00
parent 10b8d432d5
commit 863a5c16e1
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ package main
import (
"context"
"encoding/json"
"io/ioutil"
"io"
"log"
"net"
"net/http"
@ -119,7 +119,7 @@ func (c ApiClient) doRequest(group string, method string, parameters url.Values)
log.Println(err)
return []byte{}, err
}
bodyBytes, err := ioutil.ReadAll(res.Body)
bodyBytes, err := io.ReadAll(res.Body)
if err != nil {
return []byte{}, err
}