diff options
author | Vitaly Takmazov | 2018-04-16 15:27:54 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-16 15:27:54 +0300 |
commit | a27d737896aafc392c0455a9789895386c5e1cf9 (patch) | |
tree | 8a27aa0926c924914572a181ca113a957798c804 | |
parent | a1703a67b166fd2e1616acb4e9ba0cdb218b521c (diff) |
server: fix gif content type
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/Messages.java | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |