util: DoChunks: accept custom chunk sizes
This commit is contained in:
parent
f02730dc6b
commit
06f296639e
2 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue