more updates and renaming

This commit is contained in:
Henrique Dias committed 2017-06-19 17:10:03 +01:00
1 parent 1c703e0364
commit 8c19482190
24 files changed
+4823 -4729

No files matched your search

+1 -2
View File
@@ -13,7 +13,6 @@ import (
"os"
fm "github.com/hacdias/filemanager"
"github.com/hacdias/filemanager/utils"
)
// checksum calculates the hash of a filemanager. Supports MD5, SHA1, SHA256 and SHA512.
@@ -22,7 +21,7 @@ func checksum(w http.ResponseWriter, r *http.Request, c *fm.Config, i *fm.FileIn
file, err := os.Open(i.Path)
if err != nil {
return utils.ErrorToHTTPCode(err, true), err
return errorToHTTPCode(err, true), err
}
defer file.Close()