aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-04 18:47:29 +0300
committerGravatar Vitaly Takmazov2018-10-04 18:47:29 +0300
commit41884ff2f4f19a4b2a05a3bbe4b8e6c0043fd9d9 (patch)
tree87d6da514d08d27f7269fe57954a5c5c6dcb6f6e /juick-server/src/main/java/com/juick/server
parentf941a292f7211d2712d94983226662446b74f8bb (diff)
Fix content negotiation
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r--juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java b/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java
index 3f13b6bb..0708e27f 100644
--- a/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java
+++ b/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java
@@ -31,6 +31,7 @@ import org.apache.commons.lang3.StringUtils;
import org.apache.commons.text.StringEscapeUtils;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.http.HttpStatus;
+import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
@@ -483,7 +484,7 @@ public class MessagesWWW {
model.addAttribute("uname", uname);
return "views/pm_sent";
}
- @GetMapping("/{uname}/{mid}")
+ @GetMapping(value = "/{uname}/{mid}", produces = MediaType.TEXT_HTML_VALUE)
protected String threadAction(ModelMap model,
@PathVariable String uname,
@PathVariable int mid,