H5
error: "Unsupported Media Type"
exception: "org.springframework.web.HttpMediaTypeNotSupportedException"
message: "Invalid mime type "application/json;charset=UTF-8 application/json": UTF-8 application/json"
path: "/rest/login"
status: 415
timestamp: 1568960229851
fly用的是默认,Content-Type H5的自动变成 application/json;charset=UTF-8 application/json
现在解决办法
// #ifdef H5
config.headers["Content-Type"] = "application/json;charset=UTF-8;";
// #endif
多加一个 ;
1 个回复
DCloud_heavensoft
更新2.3.1