{"action":"created","issue":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/977","labels_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/977/labels{/name}","comments_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/977/comments","events_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/977/events","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/977","id":128753496,"number":977,"title":"Fix HTTP response bug while server only support HTTP/1.0","user":{"login":"vowstar","id":394260,"avatar_url":"https://avatars.githubusercontent.com/u/394260?v=3","gravatar_id":"","url":"https://api.github.com/users/vowstar","html_url":"https://github.com/vowstar","followers_url":"https://api.github.com/users/vowstar/followers","following_url":"https://api.github.com/users/vowstar/following{/other_user}","gists_url":"https://api.github.com/users/vowstar/gists{/gist_id}","starred_url":"https://api.github.com/users/vowstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vowstar/subscriptions","organizations_url":"https://api.github.com/users/vowstar/orgs","repos_url":"https://api.github.com/users/vowstar/repos","events_url":"https://api.github.com/users/vowstar/events{/privacy}","received_events_url":"https://api.github.com/users/vowstar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-26T08:15:29Z","updated_at":"2016-01-27T09:35:29Z","closed_at":"2016-01-26T23:51:48Z","pull_request":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/pulls/977","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/977","diff_url":"https://github.com/nodemcu/nodemcu-firmware/pull/977.diff","patch_url":"https://github.com/nodemcu/nodemcu-firmware/pull/977.patch"},"body":"- Fix HTTP response bug while server response HTTP/1.0.\r\nWhen server use HTTP/1.0 API, NodeMCU will receive error. So fix it, and now support both  HTTP/1.0 and HTTP/1.1,\r\n- Change BUFFER_SIZE_MAX from 1024 to 0x2000. This doesn't consume more RAM because it is only a limit value, the buffer is allocated when data received. (but Lua in firmware not support such a long string, I don't find better way to hold it, may write it to filesystem directly?)\r\n"},"comment":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/comments/175510907","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/977#issuecomment-175510907","issue_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/977","id":175510907,"user":{"login":"vowstar","id":394260,"avatar_url":"https://avatars.githubusercontent.com/u/394260?v=3","gravatar_id":"","url":"https://api.github.com/users/vowstar","html_url":"https://github.com/vowstar","followers_url":"https://api.github.com/users/vowstar/followers","following_url":"https://api.github.com/users/vowstar/following{/other_user}","gists_url":"https://api.github.com/users/vowstar/gists{/gist_id}","starred_url":"https://api.github.com/users/vowstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vowstar/subscriptions","organizations_url":"https://api.github.com/users/vowstar/orgs","repos_url":"https://api.github.com/users/vowstar/repos","events_url":"https://api.github.com/users/vowstar/events{/privacy}","received_events_url":"https://api.github.com/users/vowstar/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T09:35:29Z","updated_at":"2016-01-27T09:35:29Z","body":"@dvv These code is very cool, it can be used not only in HTTP client but also in HTTP server. I will try it and let this module support both client and server.\r\n@jmattsson Yes, a better solution is streaming method, when long data is come, it can split data and callback while every segment received."}}