Repair adjustments 2
This commit is contained in:
@@ -29,7 +29,7 @@ func CheckFile(directory, torrentName, fileName string, w http.ResponseWriter, r
|
||||
file, ok := torrent.SelectedFiles.Get(fileName)
|
||||
if !ok || file.IsDeleted {
|
||||
log.Warnf("Cannot find file %s from path %s", fileName, req.URL.Path)
|
||||
http.Error(w, "Cannot find file", http.StatusNotFound)
|
||||
http.Error(w, "File not found", http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
contentType := getContentMimeType(fileName)
|
||||
|
||||
Reference in New Issue
Block a user