Change to locked

This commit is contained in:
Ben Sarmiento
2024-01-31 22:42:18 +01:00
parent 0810e8203f
commit 6d39ec8e05

View File

@@ -49,7 +49,7 @@ func (dl *Downloader) DownloadFile(directory, torrentName, fileName string, resp
// log.Debugf("Opening file %s from torrent %s (%s)", fileName, torMgr.GetKey(torrent), file.Link) // log.Debugf("Opening file %s from torrent %s (%s)", fileName, torMgr.GetKey(torrent), file.Link)
if file.IsBroken { if file.IsBroken {
if cfg.EnableRepair() { if cfg.EnableRepair() {
http.Error(resp, "File is temporarily unavailable", http.StatusInternalServerError) http.Error(resp, "File is temporarily unavailable", http.StatusLocked)
} else { } else {
http.Error(resp, "File is not available", http.StatusNotFound) http.Error(resp, "File is not available", http.StatusNotFound)
} }