{"action":"created","issue":{"url":"https://api.github.com/repos/umijs/umi/issues/492","repository_url":"https://api.github.com/repos/umijs/umi","labels_url":"https://api.github.com/repos/umijs/umi/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/umijs/umi/issues/492/comments","events_url":"https://api.github.com/repos/umijs/umi/issues/492/events","html_url":"https://github.com/umijs/umi/issues/492","id":323944911,"number":492,"title":"整理了一下#476 关于请求错误的问题（proxy）","user":{"login":"xiaohuoni","id":11746742,"avatar_url":"https://avatars1.githubusercontent.com/u/11746742?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaohuoni","html_url":"https://github.com/xiaohuoni","followers_url":"https://api.github.com/users/xiaohuoni/followers","following_url":"https://api.github.com/users/xiaohuoni/following{/other_user}","gists_url":"https://api.github.com/users/xiaohuoni/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaohuoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaohuoni/subscriptions","organizations_url":"https://api.github.com/users/xiaohuoni/orgs","repos_url":"https://api.github.com/users/xiaohuoni/repos","events_url":"https://api.github.com/users/xiaohuoni/events{/privacy}","received_events_url":"https://api.github.com/users/xiaohuoni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-17T09:35:54Z","updated_at":"2018-05-22T03:11:15Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"#476 \r\n重现例子 https://github.com/xiaohuoni/umi-proxy-issue\r\n问题表现：\r\n## 使用proxy\r\n### GET 表现正常，先有一个pending，然后请求响应了\r\n### POST 没带分号 一直在pending 直到超时 \r\n<p>Provisional headers are shown </p>\r\n<p>\"Content-type\": \"application/json; charset=UTF-8\" </p>\r\n\r\n### POST 带分号\r\n<p>\"Content-type\": \"application/json; charset=UTF-8;\" </p>\r\n返回数据是\r\n\r\n```json\r\n{\r\n\"id\": 101\r\n}\r\n```\r\n\r\n## 不使用proxy\r\n### POST 带分号 \r\n<p>\"Content-type\": \"application/json; charset=UTF-8;\" </p>\r\n返回数据是\r\n\r\n```json\r\n{\r\n\"id\": 101\r\n}\r\n```\r\n### POST 没带分号\r\n<p>\"Content-type\": \"application/json; charset=UTF-8\" </p>\r\n返回数据是\r\n\r\n```json\r\n{\r\n  \"title\": \"foo\",\r\n  \"body\": \"bar\",\r\n   \"userId\": 1,\r\n   \"id\": 101\r\n}\r\n```\r\n## 不使用umi\r\n没使用umi，和没使用proxy时表现是一致的，可以查看index.html文件"},"comment":{"url":"https://api.github.com/repos/umijs/umi/issues/comments/390849172","html_url":"https://github.com/umijs/umi/issues/492#issuecomment-390849172","issue_url":"https://api.github.com/repos/umijs/umi/issues/492","id":390849172,"user":{"login":"sorrycc","id":35128,"avatar_url":"https://avatars1.githubusercontent.com/u/35128?v=4","gravatar_id":"","url":"https://api.github.com/users/sorrycc","html_url":"https://github.com/sorrycc","followers_url":"https://api.github.com/users/sorrycc/followers","following_url":"https://api.github.com/users/sorrycc/following{/other_user}","gists_url":"https://api.github.com/users/sorrycc/gists{/gist_id}","starred_url":"https://api.github.com/users/sorrycc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorrycc/subscriptions","organizations_url":"https://api.github.com/users/sorrycc/orgs","repos_url":"https://api.github.com/users/sorrycc/repos","events_url":"https://api.github.com/users/sorrycc/events{/privacy}","received_events_url":"https://api.github.com/users/sorrycc/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T03:11:15Z","updated_at":"2018-05-22T03:11:15Z","author_association":"MEMBER","body":"相关问题：\r\n\r\n* https://segmentfault.com/q/1010000014957356\r\n* https://github.com/sorrycc/roadhog/issues/689\r\n"}}
{"actor":{"display_login":"sorrycc"}}