Set the content-type of the epub downloads

This commit is contained in:
Las Zenow 2021-03-15 16:33:16 +00:00
parent 68f5d95915
commit c625906384

View file

@ -113,6 +113,7 @@ func downloadHandler(h handler) {
defer f.Close() defer f.Close()
addCacheControlHeader(h.w, false) addCacheControlHeader(h.w, false)
h.w.Header().Set("Content-Type", "application/epub+zip")
http.ServeContent(h.w, h.r, bookFileName(book), book.UploadDate, f) http.ServeContent(h.w, h.r, bookFileName(book), book.UploadDate, f)
} }