diff --git a/scripts/main.go b/scripts/main.go index d439773..9c761a2 100644 --- a/scripts/main.go +++ b/scripts/main.go @@ -5,7 +5,7 @@ import ( "bytes" "encoding/json" "fmt" - "io/ioutil" + "io" "log" "net/http" "os" @@ -35,7 +35,7 @@ func getAllPackages() { } func handleRequest(w http.ResponseWriter, r *http.Request) { // Read the request body - body, err := ioutil.ReadAll(r.Body) + body, err := io.ReadAll(r.Body) if err != nil { http.Error(w, "Error reading request body: "+err.Error(), http.StatusInternalServerError) return