Set the content-type of the epub downloads
This commit is contained in:
parent
68f5d95915
commit
c625906384
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue