get请求conten-type加不进去

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

get请求conten-type加不进去

wanxi3
headers = [NVPair('Content-Type', 'application/json')]
HTTPRequest().GET('http://10.1.11.235:7504/v2/resources/get?apikey=e10adc3949ba59abbe56e057f2gg88dd&id=58db51d9eff46f19a18b8ce9', None, headers)

报错org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'null' not supported