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後綴?