From 23bcb1d76e3b3c3a3addb4e8b37c70348fbe4fe9 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 10 Apr 2024 11:09:39 +0100 Subject: [PATCH] fix produces for server icon endpoint --- src/main/java/cc.fascinated/controller/ServerController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc.fascinated/controller/ServerController.java b/src/main/java/cc.fascinated/controller/ServerController.java index f508e6f..5a7f64d 100644 --- a/src/main/java/cc.fascinated/controller/ServerController.java +++ b/src/main/java/cc.fascinated/controller/ServerController.java @@ -30,7 +30,7 @@ public class ServerController { } @ResponseBody - @GetMapping(value = "/icon/{hostnameAndPort}", produces = MediaType.APPLICATION_JSON_VALUE) + @GetMapping(value = "/icon/{hostnameAndPort}", produces = MediaType.IMAGE_PNG_VALUE) public ResponseEntity getServerIcon( @Parameter(description = "The hostname and port of the server", example = "play.hypixel.net") @PathVariable String hostnameAndPort, @Parameter(description = "Whether to download the image") @RequestParam(required = false, defaultValue = "false") boolean download) {