fix content type for cover
authorNiki Roo <niki@nikiroo.be>
Wed, 13 May 2020 12:20:11 +0000 (14:20 +0200)
committerNiki Roo <niki@nikiroo.be>
Wed, 13 May 2020 12:20:11 +0000 (14:20 +0200)
src/be/nikiroo/fanfix/library/WebLibraryServer.java

index 26de6a862f58086f18b195811789715c307cb7f6..b4a6e4bb25f3776c819a43e9235f58b5c63b7788 100644 (file)
@@ -713,6 +713,8 @@ public class WebLibraryServer implements Runnable {
                                if (img != null) {
                                        in = img.newInputStream();
                                }
+                               // TODO: get correct image type
+                               mimeType = "image/png";
                        } else if ("metadata".equals(chapterStr)) {
                                MetaData meta = meta(luid, whitelist);
                                JSONObject json = JsonIO.toJson(meta);