]> Cypherpunks.ru repositories - gocheese.git/blobdiff - upload.go
Update dependencies
[gocheese.git] / upload.go
index aec2008849f534241ad7ce3850627663cb265973..c35f89dbe314bce07f610f84c1b05e016edb27db 100644 (file)
--- a/upload.go
+++ b/upload.go
@@ -1,7 +1,7 @@
 /*
 GoCheese -- Python private package repository and caching proxy
-Copyright (C) 2019-2022 Sergey Matveev <stargrave@stargrave.org>
-              2019-2022 Elena Balakhonova <balakhonova_e@riseup.net>
+Copyright (C) 2019-2023 Sergey Matveev <stargrave@stargrave.org>
+              2019-2023 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
@@ -24,7 +24,6 @@ import (
        "crypto/sha256"
        "encoding/hex"
        "io"
-       "io/ioutil"
        "log"
        "net/http"
        "os"
@@ -215,7 +214,7 @@ func serveUpload(w http.ResponseWriter, r *http.Request) {
                        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)