Index: src/main/groovy/com/lemans/correspondence/controllers/FormSubmitController.groovy =================================================================== diff -u -r7b675fc917ba83258985ee14826d506319f87b11 -r05a738e378deddcf6dbe5b63365c89fe37f6eb96 --- src/main/groovy/com/lemans/correspondence/controllers/FormSubmitController.groovy (.../FormSubmitController.groovy) (revision 7b675fc917ba83258985ee14826d506319f87b11) +++ src/main/groovy/com/lemans/correspondence/controllers/FormSubmitController.groovy (.../FormSubmitController.groovy) (revision 05a738e378deddcf6dbe5b63365c89fe37f6eb96) @@ -24,7 +24,7 @@ FormSubmitService formSubmitService @PostMapping("/domain/{domainId}/form/{formKey}/submit") - def add(@PathVariable Integer domainId, @PathVariable String formKey, @RequestHeader("Content-Type") String contentType, @RequestBody Map input, @RequestParam(required = false) Map params) { + def add(@PathVariable Integer domainId, @PathVariable String formKey, @RequestHeader("Content-Type") String contentType, @RequestBody(required = false) Map input, @RequestParam(required = false) Map params) { Map formData = [:] if (contentType.contains('multipart/form-data') || contentType.contains('application/x-www-form-urlencoded')) { formData = extractFormData(params)