unexport fileInfo
Former-commit-id: e6492286dba14bb758f36da9a3f14d223e5b2d32
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
// checksum calculates the hash of a file. Supports MD5, SHA1, SHA256 and SHA512.
|
||||
func checksum(w http.ResponseWriter, r *http.Request, i *FileInfo) (int, error) {
|
||||
func 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