update dependencies

This commit is contained in:
2024-06-28 10:19:53 -06:00
parent 5df9cc4323
commit d9e1985d89
3 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ package main
import (
"bufio"
"fmt"
"io/ioutil"
"io"
"log"
"net/http"
"net/url"
@@ -74,7 +74,7 @@ func addRuTorrent(ruTorrentURL, magnetLink string) error {
}
if resp.StatusCode != http.StatusOK {
body, _ := ioutil.ReadAll(resp.Body)
body, _ := io.ReadAll(resp.Body)
defer resp.Body.Close()
fmt.Println(string(body))
return fmt.Errorf("unexpected HTTP status code '%d', expected '%d'", resp.StatusCode, http.StatusOK)