dkl-store-upload

This commit is contained in:
Mikaël Cluseau
2019-10-16 18:23:03 +11:00
parent a7158e9e56
commit 48ab32f319
3 changed files with 71 additions and 15 deletions

View File

@ -47,7 +47,7 @@ func handleHTTP(w http.ResponseWriter, req *http.Request) {
}
switch req.Method {
case "GET":
case "GET", "HEAD":
sha1Hex, err := hashOf(filePath)
if err != nil {
writeErr(err, w)