From 2142e114f33b9537e15799281212fec1817a999a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 22 Jan 2018 13:49:14 +0300 Subject: www: post form fixes --- juick-www/src/main/java/com/juick/www/controllers/NewMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-www/src/main/java/com') diff --git a/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java b/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java index ea81b5e0..5a73d983 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java +++ b/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java @@ -392,7 +392,7 @@ public class NewMessage { } } @PostMapping("/post2") - public String doPostMessage(@RequestParam(name = "body") String bodyParam, + public String doPostMessage(@RequestParam(name = "body", required = false) String bodyParam, @RequestParam(required = false) String img, @RequestParam(required = false) String referer, @RequestParam(required = false) MultipartFile attach) throws IOException { -- cgit v1.2.3