aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/controllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-22 13:49:14 +0300
committerGravatar Vitaly Takmazov2018-01-22 13:49:14 +0300
commit2142e114f33b9537e15799281212fec1817a999a (patch)
tree964de02505c8eda17b541a7b2db43a1e736f63dc /juick-www/src/main/java/com/juick/www/controllers
parent8ca47f9eb169ad2e1d6c956616620a27cf55d069 (diff)
www: post form fixes
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/controllers')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/NewMessage.java2
1 files changed, 1 insertions, 1 deletions
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 {