more updates
Former-commit-id: 8c19eda25f60e0fc5587dde8c19a8428befc3e0d
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user