0
我试图发送json数据作为grails中的响应主体。我试着用以下方法中的Content-Type头设置为application/JSON:如何删除内容类型标题中的charset = utf-8,由grails生成
render (status: httpServletResponse, text: responseToRender as JSON, contentType: "application/json")
每次生成的头如下:
Content-Type: application/json;charset=utf-8
如何摆脱字符集= UTF-8后缀?