Add option for http mount

This commit is contained in:
Ben Sarmiento
2023-10-22 16:46:36 +02:00
parent 16d6bf4f81
commit 50075df13f
6 changed files with 300 additions and 7 deletions

View File

@@ -97,7 +97,7 @@ func handleSingleTorrent(requestPath string, w http.ResponseWriter, r *http.Requ
return nil, fmt.Errorf("cannot find directory when generating single torrent: %s", requestPath)
}
resp, err := createSingleTorrentResponse("/"+directory, sameNameTorrents, t)
resp, err := createSingleTorrentResponse("/"+directory, sameNameTorrents)
if err != nil {
return nil, fmt.Errorf("cannot read directory (%s): %w", requestPath, err)
}