我正在尝试设置 header Content-Type = 'application/json; charset=UTF-8',但出现错误

Am trying to set a header Content-Type = 'application/json; charset=UTF-8', but getting error

我正在尝试设置 header Content-Type = 'application/json; charset=UTF-8',但出现以下错误:

java.lang.IllegalArgumentException: MIME type may not contain reserved characters

请省略字符集部分,它应该可以。

* header Content-Type = 'application/json'