{"action":"created","issue":{"url":"https://api.github.com/repos/matthew-andrews/isomorphic-fetch/issues/50","repository_url":"https://api.github.com/repos/matthew-andrews/isomorphic-fetch","labels_url":"https://api.github.com/repos/matthew-andrews/isomorphic-fetch/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/matthew-andrews/isomorphic-fetch/issues/50/comments","events_url":"https://api.github.com/repos/matthew-andrews/isomorphic-fetch/issues/50/events","html_url":"https://github.com/matthew-andrews/isomorphic-fetch/issues/50","id":118636762,"number":50,"title":"Fetch Header getting dropped in Node","user":{"login":"jasonadt","id":6749993,"avatar_url":"https://avatars.githubusercontent.com/u/6749993?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonadt","html_url":"https://github.com/jasonadt","followers_url":"https://api.github.com/users/jasonadt/followers","following_url":"https://api.github.com/users/jasonadt/following{/other_user}","gists_url":"https://api.github.com/users/jasonadt/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonadt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonadt/subscriptions","organizations_url":"https://api.github.com/users/jasonadt/orgs","repos_url":"https://api.github.com/users/jasonadt/repos","events_url":"https://api.github.com/users/jasonadt/events{/privacy}","received_events_url":"https://api.github.com/users/jasonadt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-11-24T15:41:32Z","updated_at":"2016-10-08T16:44:58Z","closed_at":null,"body":"I'm working on an isomorphic React app and we've been happily using this fetch library which has worked well until recently.\r\n\r\n**My problem**: Fetch appears to be dropping/removing my ``` X-NO-CACHE ``` header in NodeJS (it works fine when calling Fetch from the browser). Our other headers (such as: ``` accept ```) seem to be fine.\r\n\r\nHere's how I'm setting the header: ``` fetchOptions.headers['X-NO-CACHE'] = true; ```. I've added tracing to the node-fetch/index.js file and observed the following: \r\n\r\n```\r\nNode Fetch options: \r\n{ headers: { accept: 'application/json', 'X-NO-CACHE': true },\r\n  credentials: 'same-origin' }\r\n\r\nNode Fetch headers: \r\nHeaders { _headers: { accept: [ 'application/json' ] } }\r\n\r\n```\r\n\r\n**UPDATE**: I just realized that it works after I use: ``` fetchOptions.headers['X-NO-CACHE'] = 'true'; ``` (needed to use ``` 'true' ``` instead of ``` true ```).\r\n\r\nPlease fix this for Node since it works fine on the client and should work the same on the server.\r\n\r\nThanks!\r\nJason"},"comment":{"url":"https://api.github.com/repos/matthew-andrews/isomorphic-fetch/issues/comments/252434976","html_url":"https://github.com/matthew-andrews/isomorphic-fetch/issues/50#issuecomment-252434976","issue_url":"https://api.github.com/repos/matthew-andrews/isomorphic-fetch/issues/50","id":252434976,"user":{"login":"NomadGraphix","id":2763372,"avatar_url":"https://avatars.githubusercontent.com/u/2763372?v=3","gravatar_id":"","url":"https://api.github.com/users/NomadGraphix","html_url":"https://github.com/NomadGraphix","followers_url":"https://api.github.com/users/NomadGraphix/followers","following_url":"https://api.github.com/users/NomadGraphix/following{/other_user}","gists_url":"https://api.github.com/users/NomadGraphix/gists{/gist_id}","starred_url":"https://api.github.com/users/NomadGraphix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NomadGraphix/subscriptions","organizations_url":"https://api.github.com/users/NomadGraphix/orgs","repos_url":"https://api.github.com/users/NomadGraphix/repos","events_url":"https://api.github.com/users/NomadGraphix/events{/privacy}","received_events_url":"https://api.github.com/users/NomadGraphix/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T16:44:57Z","updated_at":"2016-10-08T16:44:57Z","body":"@jasonadt \r\nHello there, I'm considering using this library for similar reasons.\r\nI'm searching the documentation and am coming up empty, how do you set the headers in the first place? "}}
{"actor":{"display_login":"NomadGraphix"}}