From 18b16eb8598ce3477e24efb69e812008206c3bb4 Mon Sep 17 00:00:00 2001 From: Andrew DeMaria Date: Wed, 20 Dec 2017 16:53:16 -0700 Subject: [PATCH] Fix #658 content type for full size cover arts Signed-off-by: Andrew DeMaria --- .../java/org/airsonic/player/controller/CoverArtController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airsonic-main/src/main/java/org/airsonic/player/controller/CoverArtController.java b/airsonic-main/src/main/java/org/airsonic/player/controller/CoverArtController.java index 84673b2a..79d462a1 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/controller/CoverArtController.java +++ b/airsonic-main/src/main/java/org/airsonic/player/controller/CoverArtController.java @@ -217,7 +217,7 @@ public class CoverArtController implements LastModified { private void sendUnscaled(CoverArtRequest coverArtRequest, HttpServletResponse response) throws IOException { File file = coverArtRequest.getCoverArt(); - if (!jaudiotaggerParser.isApplicable(file)) { + if (jaudiotaggerParser.isApplicable(file)) { response.setContentType(StringUtil.getMimeType(FilenameUtils.getExtension(file.getName()))); } InputStream in = null;