From c6259063840b88525a9b5d6490c7c3d0a12deda7 Mon Sep 17 00:00:00 2001 From: Las Zenow Date: Mon, 15 Mar 2021 16:33:16 +0000 Subject: [PATCH] Set the content-type of the epub downloads --- lib/trantor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/trantor.go b/lib/trantor.go index 24b34e5..0bd0320 100644 --- a/lib/trantor.go +++ b/lib/trantor.go @@ -113,6 +113,7 @@ func downloadHandler(h handler) { defer f.Close() addCacheControlHeader(h.w, false) + h.w.Header().Set("Content-Type", "application/epub+zip") http.ServeContent(h.w, h.r, bookFileName(book), book.UploadDate, f) }