{"action":"opened","issue":{"url":"https://api.github.com/repos/atom/electron/issues/2345","labels_url":"https://api.github.com/repos/atom/electron/issues/2345/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/2345/comments","events_url":"https://api.github.com/repos/atom/electron/issues/2345/events","html_url":"https://github.com/atom/electron/issues/2345","id":97329125,"number":2345,"title":"Missing 'Accept' header in 'RequestHttpJob' requests.","user":{"login":"yan-foto","id":1678441,"avatar_url":"https://avatars.githubusercontent.com/u/1678441?v=3","gravatar_id":"","url":"https://api.github.com/users/yan-foto","html_url":"https://github.com/yan-foto","followers_url":"https://api.github.com/users/yan-foto/followers","following_url":"https://api.github.com/users/yan-foto/following{/other_user}","gists_url":"https://api.github.com/users/yan-foto/gists{/gist_id}","starred_url":"https://api.github.com/users/yan-foto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yan-foto/subscriptions","organizations_url":"https://api.github.com/users/yan-foto/orgs","repos_url":"https://api.github.com/users/yan-foto/repos","events_url":"https://api.github.com/users/yan-foto/events{/privacy}","received_events_url":"https://api.github.com/users/yan-foto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-26T15:53:25Z","updated_at":"2015-07-26T15:53:25Z","closed_at":null,"body":"As I was trying to intercept all URLs with `file` scheme, so I can fetch some online instead of from the file system, I found out that the semantic for `BrowserWindow.loadUrl('http://localhost:3000/something')` is different from the following:\r\n\r\n```js\r\nvar protocol = require('protocol');\r\nprotocol.RequestHttpJob({\r\n  url: 'http://localhost:3000/something'\r\n});\r\n```\r\n\r\nthe latter doesn't set the `Accept` header for HTTP requests."}}