{"action":"created","issue":{"url":"https://api.github.com/repos/form-data/form-data/issues/137","labels_url":"https://api.github.com/repos/form-data/form-data/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/form-data/form-data/issues/137/comments","events_url":"https://api.github.com/repos/form-data/form-data/issues/137/events","html_url":"https://github.com/form-data/form-data/issues/137","id":97011077,"number":137,"title":"Error when trying to write boolean type","user":{"login":"simov","id":1694112,"avatar_url":"https://avatars.githubusercontent.com/u/1694112?v=3","gravatar_id":"","url":"https://api.github.com/users/simov","html_url":"https://github.com/simov","followers_url":"https://api.github.com/users/simov/followers","following_url":"https://api.github.com/users/simov/following{/other_user}","gists_url":"https://api.github.com/users/simov/gists{/gist_id}","starred_url":"https://api.github.com/users/simov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simov/subscriptions","organizations_url":"https://api.github.com/users/simov/orgs","repos_url":"https://api.github.com/users/simov/repos","events_url":"https://api.github.com/users/simov/events{/privacy}","received_events_url":"https://api.github.com/users/simov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/form-data/form-data/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/form-data/form-data/labels/v1.0","name":"v1.0","color":"d4c5f9"},{"url":"https://api.github.com/repos/form-data/form-data/labels/v1.0.0-rc4","name":"v1.0.0-rc4","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/form-data/form-data/milestones/1","html_url":"https://github.com/form-data/form-data/milestones/v1.0","labels_url":"https://api.github.com/repos/form-data/form-data/milestones/1/labels","id":699022,"number":1,"title":"v1.0","description":"","creator":{"login":"alexindigo","id":127063,"avatar_url":"https://avatars.githubusercontent.com/u/127063?v=3","gravatar_id":"","url":"https://api.github.com/users/alexindigo","html_url":"https://github.com/alexindigo","followers_url":"https://api.github.com/users/alexindigo/followers","following_url":"https://api.github.com/users/alexindigo/following{/other_user}","gists_url":"https://api.github.com/users/alexindigo/gists{/gist_id}","starred_url":"https://api.github.com/users/alexindigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexindigo/subscriptions","organizations_url":"https://api.github.com/users/alexindigo/orgs","repos_url":"https://api.github.com/users/alexindigo/repos","events_url":"https://api.github.com/users/alexindigo/events{/privacy}","received_events_url":"https://api.github.com/users/alexindigo/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":3,"state":"open","created_at":"2014-06-23T17:21:05Z","updated_at":"2015-07-30T03:39:17Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2015-07-24T09:19:06Z","updated_at":"2015-12-05T23:54:41Z","closed_at":null,"body":"Hi, there,\r\n\r\nWe recently had this bug report https://github.com/request/request/issues/1693 in *request*\r\n\r\nIt turned out that the user passes a `boolean` value to one of the form-data's fields (`field:false`) that results in [_http_outgoing](https://github.com/joyent/node/blob/v0.12.6/lib/_http_outgoing.js#L433) error in core.\r\n\r\nMy question is: Is the best place to fix that issue [here](https://github.com/felixge/node-form-data/blob/master/lib/form_data.js#L32), like you do for `number` types?\r\n\r\n```js\r\n// all that streamy business can't handle numbers\r\nif (typeof value == 'number' || typeof value == 'boolean') value = ''+value;\r\n```"},"comment":{"url":"https://api.github.com/repos/form-data/form-data/issues/comments/162257899","html_url":"https://github.com/form-data/form-data/issues/137#issuecomment-162257899","issue_url":"https://api.github.com/repos/form-data/form-data/issues/137","id":162257899,"user":{"login":"DylanPiercey","id":4985201,"avatar_url":"https://avatars.githubusercontent.com/u/4985201?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanPiercey","html_url":"https://github.com/DylanPiercey","followers_url":"https://api.github.com/users/DylanPiercey/followers","following_url":"https://api.github.com/users/DylanPiercey/following{/other_user}","gists_url":"https://api.github.com/users/DylanPiercey/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanPiercey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanPiercey/subscriptions","organizations_url":"https://api.github.com/users/DylanPiercey/orgs","repos_url":"https://api.github.com/users/DylanPiercey/repos","events_url":"https://api.github.com/users/DylanPiercey/events{/privacy}","received_events_url":"https://api.github.com/users/DylanPiercey/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T23:54:41Z","updated_at":"2015-12-05T23:54:41Z","body":"@alexindigo what are your thoughts on adding a 2.0 want list? I'd love to see this future as soon as possible. (Casting values to strings by default)."}}