Browse code

fix stupid post spring bug

devnewton authored on 14/03/2017 at 16:55:00
Showing 1 changed files
... ...
@@ -67,7 +67,7 @@ public class LegacyController {
67 67
     }
68 68
 
69 69
     @RequestMapping(value = "/post", method = RequestMethod.POST)
70
-    public String post(@RequestParam(value = "nickname", required = false) String nickname, @RequestParam(value = "message") String message, @RequestParam(value = "room", required = false) String room, @RequestParam(value = "last", required = false) Long last, @RequestHeader(value = "User-Agent", required = false) String userAgent, WebRequest webRequest, @RequestParam(value = "auth", required = false) String auth, Model model, HttpServletResponse response, ServerHttpRequest httpRequest) {
70
+    public String post(@RequestParam(value = "nickname", required = false) String nickname, @RequestParam(value = "message") String message, @RequestParam(value = "room", required = false) String room, @RequestParam(value = "last", required = false) Long last, @RequestHeader(value = "User-Agent", required = false) String userAgent, WebRequest webRequest, @RequestParam(value = "auth", required = false) String auth, Model model, HttpServletResponse response) {
71 71
         if (StringUtils.isBlank(nickname)) {
72 72
             nickname = userAgent;
73 73
         }