{"action":"created","issue":{"url":"https://api.github.com/repos/abhinavsingh/proxy.py/issues/27","repository_url":"https://api.github.com/repos/abhinavsingh/proxy.py","labels_url":"https://api.github.com/repos/abhinavsingh/proxy.py/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/abhinavsingh/proxy.py/issues/27/comments","events_url":"https://api.github.com/repos/abhinavsingh/proxy.py/issues/27/events","html_url":"https://github.com/abhinavsingh/proxy.py/pull/27","id":322665389,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg3NzE0OTcw","number":27,"title":" Fix a bug when parsing chunked data","user":{"login":"lxylxy123456","id":9337403,"node_id":"MDQ6VXNlcjkzMzc0MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/9337403?v=4","gravatar_id":"","url":"https://api.github.com/users/lxylxy123456","html_url":"https://github.com/lxylxy123456","followers_url":"https://api.github.com/users/lxylxy123456/followers","following_url":"https://api.github.com/users/lxylxy123456/following{/other_user}","gists_url":"https://api.github.com/users/lxylxy123456/gists{/gist_id}","starred_url":"https://api.github.com/users/lxylxy123456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxylxy123456/subscriptions","organizations_url":"https://api.github.com/users/lxylxy123456/orgs","repos_url":"https://api.github.com/users/lxylxy123456/repos","events_url":"https://api.github.com/users/lxylxy123456/events{/privacy}","received_events_url":"https://api.github.com/users/lxylxy123456/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-14T04:01:02Z","updated_at":"2018-10-17T14:12:58Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/abhinavsingh/proxy.py/pulls/27","html_url":"https://github.com/abhinavsingh/proxy.py/pull/27","diff_url":"https://github.com/abhinavsingh/proxy.py/pull/27.diff","patch_url":"https://github.com/abhinavsingh/proxy.py/pull/27.patch"},"body":"If the data ends with the size without CRLF, this patch can prevent the parser from raising an error.\r\n\r\nTest program:\r\n\r\n    from proxy import *\r\n    cp = ChunkParser()\r\n    data1 = b'3\\r\\nabc\\r\\n4'\r\n    data2 = b'\\r\\nabcd\\r\\n'\r\n    cp.parse(data1)\t\t\t# error\r\n    # would be correct if do `cp.parse(data1 + data2)`"},"comment":{"url":"https://api.github.com/repos/abhinavsingh/proxy.py/issues/comments/430644883","html_url":"https://github.com/abhinavsingh/proxy.py/pull/27#issuecomment-430644883","issue_url":"https://api.github.com/repos/abhinavsingh/proxy.py/issues/27","id":430644883,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDY0NDg4Mw==","user":{"login":"lxylxy123456","id":9337403,"node_id":"MDQ6VXNlcjkzMzc0MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/9337403?v=4","gravatar_id":"","url":"https://api.github.com/users/lxylxy123456","html_url":"https://github.com/lxylxy123456","followers_url":"https://api.github.com/users/lxylxy123456/followers","following_url":"https://api.github.com/users/lxylxy123456/following{/other_user}","gists_url":"https://api.github.com/users/lxylxy123456/gists{/gist_id}","starred_url":"https://api.github.com/users/lxylxy123456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxylxy123456/subscriptions","organizations_url":"https://api.github.com/users/lxylxy123456/orgs","repos_url":"https://api.github.com/users/lxylxy123456/repos","events_url":"https://api.github.com/users/lxylxy123456/events{/privacy}","received_events_url":"https://api.github.com/users/lxylxy123456/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T14:12:58Z","updated_at":"2018-10-17T14:12:58Z","author_association":"NONE","body":"I'm sorry, I don't quite understand where and how I should add a test case. \r\nOn the internet, the server should send data1 and data2 in two separate packets, and this program will have an error. "}}
{"actor":{"display_login":"lxylxy123456"}}