{"action":"opened","issue":{"url":"https://api.github.com/repos/wheresrhys/fetch-mock/issues/120","repository_url":"https://api.github.com/repos/wheresrhys/fetch-mock","labels_url":"https://api.github.com/repos/wheresrhys/fetch-mock/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/wheresrhys/fetch-mock/issues/120/comments","events_url":"https://api.github.com/repos/wheresrhys/fetch-mock/issues/120/events","html_url":"https://github.com/wheresrhys/fetch-mock/issues/120","id":169155428,"number":120,"title":"Match header on request","user":{"login":"mauricioklein","id":11538662,"avatar_url":"https://avatars.githubusercontent.com/u/11538662?v=3","gravatar_id":"","url":"https://api.github.com/users/mauricioklein","html_url":"https://github.com/mauricioklein","followers_url":"https://api.github.com/users/mauricioklein/followers","following_url":"https://api.github.com/users/mauricioklein/following{/other_user}","gists_url":"https://api.github.com/users/mauricioklein/gists{/gist_id}","starred_url":"https://api.github.com/users/mauricioklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauricioklein/subscriptions","organizations_url":"https://api.github.com/users/mauricioklein/orgs","repos_url":"https://api.github.com/users/mauricioklein/repos","events_url":"https://api.github.com/users/mauricioklein/events{/privacy}","received_events_url":"https://api.github.com/users/mauricioklein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-03T15:07:38Z","updated_at":"2016-08-03T15:07:38Z","closed_at":null,"body":"Sorry, but I haven't figured out how to check if a mocked request was made with a specific header.\r\n\r\nFor example:\r\nI'm mocking a login call and I wanna be sure that a specific URL is being called with the header AUTH.\r\n\r\nI'm trying something like that:\r\n`fetchMock.get(\"http://127.0.0.1/login\", {status: 'OK'}, {headers: {AUTH: '123456'}}`\r\n\r\nBut the mock is matching even without the header.\r\n\r\nWould appreciate some help in this case.\r\n\r\nThanks in advance and congrats for the great job done in this lib!"}}
{"actor":{"display_login":"mauricioklein"}}