qbittorrent/exporter: Replace deprecated calls
This commit is contained in:
parent
10b8d432d5
commit
ab600a2b16
|
@ -1,4 +1,4 @@
|
|||
// SPDX-FileCopyrightText: 2022 Simon Bruder <simon@sbruder.de>
|
||||
// SPDX-FileCopyrightText: 2022-2024 Simon Bruder <simon@sbruder.de>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue