{"action":"created","issue":{"url":"https://api.github.com/repos/hongyangAndroid/okhttp-utils/issues/236","repository_url":"https://api.github.com/repos/hongyangAndroid/okhttp-utils","labels_url":"https://api.github.com/repos/hongyangAndroid/okhttp-utils/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/hongyangAndroid/okhttp-utils/issues/236/comments","events_url":"https://api.github.com/repos/hongyangAndroid/okhttp-utils/issues/236/events","html_url":"https://github.com/hongyangAndroid/okhttp-utils/issues/236","id":160342782,"number":236,"title":"表单上传ContentType问题","user":{"login":"rdystwnts","id":8953582,"avatar_url":"https://avatars.githubusercontent.com/u/8953582?v=3","gravatar_id":"","url":"https://api.github.com/users/rdystwnts","html_url":"https://github.com/rdystwnts","followers_url":"https://api.github.com/users/rdystwnts/followers","following_url":"https://api.github.com/users/rdystwnts/following{/other_user}","gists_url":"https://api.github.com/users/rdystwnts/gists{/gist_id}","starred_url":"https://api.github.com/users/rdystwnts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdystwnts/subscriptions","organizations_url":"https://api.github.com/users/rdystwnts/orgs","repos_url":"https://api.github.com/users/rdystwnts/repos","events_url":"https://api.github.com/users/rdystwnts/events{/privacy}","received_events_url":"https://api.github.com/users/rdystwnts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-15T05:44:22Z","updated_at":"2016-07-05T08:39:48Z","closed_at":null,"body":"我觉得表单上传和普通键值对的上传方式应该作一个区分，看了代码好像是有file的时候就setType为表单上传，否则就是普通上传键值对。\r\n当我没有文件上传的时候，默认就是普通键值对上传，这时我想使用表单形式上传就做不到了。\r\n还有一个问题，为什么我在header里面添加了Content-Type为multipart/form-data没有生效，我用charles抓包时发现request里面的Content-Type还是x-www-form-urlencoded？"},"comment":{"url":"https://api.github.com/repos/hongyangAndroid/okhttp-utils/issues/comments/230419649","html_url":"https://github.com/hongyangAndroid/okhttp-utils/issues/236#issuecomment-230419649","issue_url":"https://api.github.com/repos/hongyangAndroid/okhttp-utils/issues/236","id":230419649,"user":{"login":"MrGdp","id":7940675,"avatar_url":"https://avatars.githubusercontent.com/u/7940675?v=3","gravatar_id":"","url":"https://api.github.com/users/MrGdp","html_url":"https://github.com/MrGdp","followers_url":"https://api.github.com/users/MrGdp/followers","following_url":"https://api.github.com/users/MrGdp/following{/other_user}","gists_url":"https://api.github.com/users/MrGdp/gists{/gist_id}","starred_url":"https://api.github.com/users/MrGdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrGdp/subscriptions","organizations_url":"https://api.github.com/users/MrGdp/orgs","repos_url":"https://api.github.com/users/MrGdp/repos","events_url":"https://api.github.com/users/MrGdp/events{/privacy}","received_events_url":"https://api.github.com/users/MrGdp/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T08:39:48Z","updated_at":"2016-07-05T08:39:48Z","body":"同样~"}}
{"actor":{"display_login":"MrGdp"}}