/*
GoCheese -- Python private package repository and caching proxy
-Copyright (C) 2019-2021 Sergey Matveev <stargrave@stargrave.org>
- 2019-2021 Elena Balakhonova <balakhonova_e@riseup.net>
+Copyright (C) 2019-2022 Sergey Matveev <stargrave@stargrave.org>
+ 2019-2022 Elena Balakhonova <balakhonova_e@riseup.net>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
"crypto/sha256"
"encoding/hex"
"io"
- "io/ioutil"
"log"
"net/http"
"os"
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
- sig, err := ioutil.ReadAll(src)
+ sig, err := io.ReadAll(src)
src.Close()
if err != nil {
log.Println("error", r.RemoteAddr, filename, err)