http问题日志

Invalid character found in method name. HTTP method names must be tokens|the HTTP protoco

因为请求协议不对,需要统一成https或http请求

okhttp响应中文乱码

1
2
Request request = new Request.Builder()
.addHeader("Accept", "application/json;charset=UTF-8")

Accept之处,首字母要大写