{"action":"created","issue":{"url":"https://api.github.com/repos/socketstream/socketstream/issues/515","labels_url":"https://api.github.com/repos/socketstream/socketstream/issues/515/labels{/name}","comments_url":"https://api.github.com/repos/socketstream/socketstream/issues/515/comments","events_url":"https://api.github.com/repos/socketstream/socketstream/issues/515/events","html_url":"https://github.com/socketstream/socketstream/issues/515","id":63796484,"number":515,"title":"socketstream breaks apps when used with iojs 1.6.x","user":{"login":"luksch","id":1854097,"avatar_url":"https://avatars.githubusercontent.com/u/1854097?v=3","gravatar_id":"","url":"https://api.github.com/users/luksch","html_url":"https://github.com/luksch","followers_url":"https://api.github.com/users/luksch/followers","following_url":"https://api.github.com/users/luksch/following{/other_user}","gists_url":"https://api.github.com/users/luksch/gists{/gist_id}","starred_url":"https://api.github.com/users/luksch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luksch/subscriptions","organizations_url":"https://api.github.com/users/luksch/orgs","repos_url":"https://api.github.com/users/luksch/repos","events_url":"https://api.github.com/users/luksch/events{/privacy}","received_events_url":"https://api.github.com/users/luksch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-23T18:27:02Z","updated_at":"2015-03-24T13:26:06Z","closed_at":null,"body":"it seems that the old test for node versions 0.6 in \r\n\r\nlib/request/middleware/index.js\r\n\r\nbreaks more modern apps that run on iojs, since they are now on version 1.6.x\r\n\r\n**Proposed fix:**\r\n\r\nchange line 11 of lib/request/middleware/index.js\r\n\r\n    existslib = process.version.split('.')[1] === '6' && require('path') || require('fs');\r\n\r\nto \r\n\r\n    existslib =  require('fs');\r\n\r\ndoes it for me\r\n"},"comment":{"url":"https://api.github.com/repos/socketstream/socketstream/issues/comments/85494696","html_url":"https://github.com/socketstream/socketstream/issues/515#issuecomment-85494696","issue_url":"https://api.github.com/repos/socketstream/socketstream/issues/515","id":85494696,"user":{"login":"arxpoetica","id":111424,"avatar_url":"https://avatars.githubusercontent.com/u/111424?v=3","gravatar_id":"","url":"https://api.github.com/users/arxpoetica","html_url":"https://github.com/arxpoetica","followers_url":"https://api.github.com/users/arxpoetica/followers","following_url":"https://api.github.com/users/arxpoetica/following{/other_user}","gists_url":"https://api.github.com/users/arxpoetica/gists{/gist_id}","starred_url":"https://api.github.com/users/arxpoetica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arxpoetica/subscriptions","organizations_url":"https://api.github.com/users/arxpoetica/orgs","repos_url":"https://api.github.com/users/arxpoetica/repos","events_url":"https://api.github.com/users/arxpoetica/events{/privacy}","received_events_url":"https://api.github.com/users/arxpoetica/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T13:26:06Z","updated_at":"2015-03-24T13:26:06Z","body":"I created a pull request for this. @paulbjensen (or someone) pls. review: #517"}}