util: DoChunks: accept custom chunk sizes

This commit is contained in:
Jeremy Baxter 2026-01-05 01:23:47 +13:00
parent f02730dc6b
commit 06f296639e
2 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ func serveMediaDirectory(w http.ResponseWriter, req *http.Request) {
http.Error(w, "not found", http.StatusNotFound)
return
}
util.DoChunks(f, func (buf []byte) { w.Write(buf) })
util.DoChunks(f, 4, func (buf []byte) { w.Write(buf) })
}
func handleArtistAlbumPage(w http.ResponseWriter, req *http.Request) {