From a27d737896aafc392c0455a9789895386c5e1cf9 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 16 Apr 2018 15:27:54 +0300 Subject: server: fix gif content type --- juick-server/src/main/java/com/juick/server/api/Messages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src/main') diff --git a/juick-server/src/main/java/com/juick/server/api/Messages.java b/juick-server/src/main/java/com/juick/server/api/Messages.java index 05ce504f..8142a179 100644 --- a/juick-server/src/main/java/com/juick/server/api/Messages.java +++ b/juick-server/src/main/java/com/juick/server/api/Messages.java @@ -156,7 +156,7 @@ public class Messages { } return NOT_FOUND; } - @GetMapping("/thread/mark_read/{mid}-{rid}.gif") + @GetMapping(value = "/thread/mark_read/{mid}-{rid}.gif", produces = MediaType.IMAGE_GIF_VALUE) public byte[] markThreadRead(@PathVariable int mid, @PathVariable int rid) throws IOException { User visitor = UserUtils.getCurrentUser(); if (visitor.getUid() > 0) { -- cgit v1.2.3