在自定义模式下,Android请求http的接口会请求不了,这个http请求在后端会被重定向为https的,可是请求的时候返回
{
"statusCode": 307,
"header": {
"X-Android-Response-Source": "NETWORK 307",
"Connection": "keep-alive",
"Content-Length": "186",
"Server": "nginx/1.8.0",
"X-Android-Received-Millis": "1572077216437",
"Location": "https://test/getInfo",
"_": "HTTP/1.1 307 Temporary Redirect",
"Content-Type": "text/html",
"Date": "Sat, 26 Oct 2019 08:06:56 GMT",
"X-Android-Sent-Millis": "1572077216425"
},
"errMsg": "request:ok"
}
直接把接口设置为https就可以访问,但是不想设置成https,请问该怎么解决
ios测试正常
0 个回复