From 3f468ac7897811d06598c88c98ba31fb57b4170e Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 13 May 2020 14:20:11 +0200 Subject: [PATCH] fix content type for cover --- src/be/nikiroo/fanfix/library/WebLibraryServer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/be/nikiroo/fanfix/library/WebLibraryServer.java b/src/be/nikiroo/fanfix/library/WebLibraryServer.java index 26de6a8..b4a6e4b 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); -- 2.27.0