我正在尝试发送内容类型的请求multipart/mixed
只需在我的控制器中打印请求println params
但是,我不断收到错误消息:the request was rejected because no multipart boundary was found
我不确定这是 grails 中的问题还是我的请求搞砸了。我正在使用 RESTConsole 并将内容类型设置为multipart/mixed
并将以下内容作为 RAW Body 发送:
--boundary42
Content-Type: text/plain; charset=us-ascii
...plain text version of message goes here....
--boundary42
Content-Type: text/richtext
.... richtext version of same message goes here ...
--boundary42