aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-08-05 18:31:13 +0300
committerGravatar Vitaly Takmazov2018-08-05 18:31:13 +0300
commitaa144cf6b8ca6a0f83c68b30bdecc4c8d32862db (patch)
treed00794d463e01ed9e351f4e1bd7328c67b64c13e
parent44496ac4255b02cfbf1f4afe5e9e3988a59836bf (diff)
text/xml for rss
-rw-r--r--juick-server/src/main/java/com/juick/server/api/rss/Feeds.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/rss/Feeds.java b/juick-server/src/main/java/com/juick/server/api/rss/Feeds.java
index ebf5b04e..c72f3a5e 100644
--- a/juick-server/src/main/java/com/juick/server/api/rss/Feeds.java
+++ b/juick-server/src/main/java/com/juick/server/api/rss/Feeds.java
@@ -43,7 +43,7 @@ public class Feeds {
@Inject
private UserService userService;
- @RequestMapping(value = "/rss/{userName}/blog", method = RequestMethod.GET)
+ @RequestMapping(value = "/rss/{userName}/blog", method = RequestMethod.GET, produces = "text/xml; charset=utf-8")
public ModelAndView getBlog(@PathVariable String userName) {
User user = userService.getUserByName(userName);
if (!user.isAnonymous()) {
@@ -57,7 +57,7 @@ public class Feeds {
throw new HttpBadRequestException();
}
- @RequestMapping(value = "/rss/", method = RequestMethod.GET)
+ @RequestMapping(value = "/rss/", method = RequestMethod.GET, produces = "text/xml; charset=utf-8")
public ModelAndView getLast(@RequestParam(value = "hours", required = false, defaultValue = "0") Integer hours) {
List<Integer> mids = messagesService.getLastMessages(hours);
ModelAndView modelAndView = new ModelAndView();
@@ -65,7 +65,7 @@ public class Feeds {
modelAndView.addObject("messages", messagesService.getMessages(UserUtils.getCurrentUser(),mids));
return modelAndView;
}
- @RequestMapping(value = "/rss/comments", method = RequestMethod.GET)
+ @RequestMapping(value = "/rss/comments", method = RequestMethod.GET, produces = "text/xml; charset=utf-8")
public ModelAndView getLastReplies(@RequestParam(value = "hours", required = false, defaultValue = "0") Integer hours) {
ModelAndView modelAndView = new ModelAndView();
modelAndView.setViewName("repliesView");