more updates

This commit is contained in:
Henrique Dias committed 2017-06-19 18:23:57 +01:00
1 parent af4aaf07df
commit 8c19eda25f
16 files changed
+79 -83

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ import (
)
// checksum calculates the hash of a filemanager. Supports MD5, SHA1, SHA256 and SHA512.
func (c *Config) checksum(w http.ResponseWriter, r *http.Request, i *file) (int, error) {
func (c *FileManager) checksum(w http.ResponseWriter, r *http.Request, i *fileInfo) (int, error) {
query := r.URL.Query().Get("checksum")
file, err := os.Open(i.Path)