From: Niki Roo Date: Wed, 13 May 2020 12:20:11 +0000 (+0200) Subject: fix content type for cover X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=3f468ac7897811d06598c88c98ba31fb57b4170e;p=fanfix-swing.git fix content type for cover --- diff --git a/src/be/nikiroo/fanfix/library/WebLibraryServer.java b/src/be/nikiroo/fanfix/library/WebLibraryServer.java index 26de6a86..b4a6e4bb 100644 --- a/src/be/nikiroo/fanfix/library/WebLibraryServer.java +++ b/src/be/nikiroo/fanfix/library/WebLibraryServer.java @@ -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);