parent
a4b11142b2
commit
e7a73e0859
2 changed files with 15 additions and 3 deletions
|
@ -113,7 +113,7 @@ func downloadHandler(h handler) {
|
|||
defer f.Close()
|
||||
|
||||
addCacheControlHeader(h.w, false)
|
||||
http.ServeContent(h.w, h.r, fmt.Sprintf("%s - %s.epub", strings.Join(book.Authors, ", "), book.Title), book.UploadDate, f)
|
||||
http.ServeContent(h.w, h.r, bookFileName(book), book.UploadDate, f)
|
||||
}
|
||||
|
||||
type indexData struct {
|
||||
|
|
Reference in a new issue