Okhttp:Fatal Exception: java.lang.IllegalArgumentException:unexpected char 0x0a at28 in header value

来源:互联网 发布:mac os sierra 10.13 编辑:程序博客网 时间:2024/06/05 22:52

问题:请求中的header信息中包含空格

解决方式:将要提交的header信息用trim()方法去掉空格


参考问题:https://github.com/square/retrofit/issues/1153

4 0