{"action":"created","issue":{"url":"https://api.github.com/repos/joostvunderink/angular-jsonrpc-client/issues/6","labels_url":"https://api.github.com/repos/joostvunderink/angular-jsonrpc-client/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/joostvunderink/angular-jsonrpc-client/issues/6/comments","events_url":"https://api.github.com/repos/joostvunderink/angular-jsonrpc-client/issues/6/events","html_url":"https://github.com/joostvunderink/angular-jsonrpc-client/pull/6","id":116613378,"number":6,"title":"Adding setHeaders method","user":{"login":"derfux","id":5684887,"avatar_url":"https://avatars.githubusercontent.com/u/5684887?v=3","gravatar_id":"","url":"https://api.github.com/users/derfux","html_url":"https://github.com/derfux","followers_url":"https://api.github.com/users/derfux/followers","following_url":"https://api.github.com/users/derfux/following{/other_user}","gists_url":"https://api.github.com/users/derfux/gists{/gist_id}","starred_url":"https://api.github.com/users/derfux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derfux/subscriptions","organizations_url":"https://api.github.com/users/derfux/orgs","repos_url":"https://api.github.com/users/derfux/repos","events_url":"https://api.github.com/users/derfux/events{/privacy}","received_events_url":"https://api.github.com/users/derfux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-12T18:41:09Z","updated_at":"2015-11-12T20:01:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joostvunderink/angular-jsonrpc-client/pulls/6","html_url":"https://github.com/joostvunderink/angular-jsonrpc-client/pull/6","diff_url":"https://github.com/joostvunderink/angular-jsonrpc-client/pull/6.diff","patch_url":"https://github.com/joostvunderink/angular-jsonrpc-client/pull/6.patch"},"body":"Allows to set custom http headers via: \r\n```\r\njsonrpc.setHeaders({'X-Auth':123});\r\n```\r\nand/or\r\n```\r\njsonrpcConfigProvider.set(headers:{'xy':123,'z':45});\r\n```"},"comment":{"url":"https://api.github.com/repos/joostvunderink/angular-jsonrpc-client/issues/comments/156218368","html_url":"https://github.com/joostvunderink/angular-jsonrpc-client/pull/6#issuecomment-156218368","issue_url":"https://api.github.com/repos/joostvunderink/angular-jsonrpc-client/issues/6","id":156218368,"user":{"login":"joostvunderink","id":1855368,"avatar_url":"https://avatars.githubusercontent.com/u/1855368?v=3","gravatar_id":"","url":"https://api.github.com/users/joostvunderink","html_url":"https://github.com/joostvunderink","followers_url":"https://api.github.com/users/joostvunderink/followers","following_url":"https://api.github.com/users/joostvunderink/following{/other_user}","gists_url":"https://api.github.com/users/joostvunderink/gists{/gist_id}","starred_url":"https://api.github.com/users/joostvunderink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joostvunderink/subscriptions","organizations_url":"https://api.github.com/users/joostvunderink/orgs","repos_url":"https://api.github.com/users/joostvunderink/repos","events_url":"https://api.github.com/users/joostvunderink/events{/privacy}","received_events_url":"https://api.github.com/users/joostvunderink/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T20:01:03Z","updated_at":"2015-11-12T20:01:03Z","body":"Dear Jens, thank you for your pull request. I think this is a good addition.\r\n\r\nCould you please add unit tests for both the setting of headers via the configuration and via the request call itself? Then I can merge this."}}