{"action":"created","issue":{"url":"https://api.github.com/repos/pagekit/vue-resource/issues/14","repository_url":"https://api.github.com/repos/pagekit/vue-resource","labels_url":"https://api.github.com/repos/pagekit/vue-resource/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/pagekit/vue-resource/issues/14/comments","events_url":"https://api.github.com/repos/pagekit/vue-resource/issues/14/events","html_url":"https://github.com/pagekit/vue-resource/issues/14","id":88158927,"number":14,"title":"Passing headers","user":{"login":"briward","id":865261,"avatar_url":"https://avatars2.githubusercontent.com/u/865261?v=3","gravatar_id":"","url":"https://api.github.com/users/briward","html_url":"https://github.com/briward","followers_url":"https://api.github.com/users/briward/followers","following_url":"https://api.github.com/users/briward/following{/other_user}","gists_url":"https://api.github.com/users/briward/gists{/gist_id}","starred_url":"https://api.github.com/users/briward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briward/subscriptions","organizations_url":"https://api.github.com/users/briward/orgs","repos_url":"https://api.github.com/users/briward/repos","events_url":"https://api.github.com/users/briward/events{/privacy}","received_events_url":"https://api.github.com/users/briward/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2015-06-14T09:57:23Z","updated_at":"2017-07-10T12:34:27Z","closed_at":"2015-06-20T16:35:20Z","body":"Hi, \n\nI've been trying to pass an `authorization` header to the http request and it doesn't seem to be working. I'm not entirely sure if this is the right way to do it, perhaps you know of a way to achieve this?\n\n``` js\nnew Vue({\n\n  el: '.container',\n\n  ready: function() {\n\n    this.fetchNode();\n\n  },\n\n  methods: {\n    fetchNode: function() {\n\n      this.$http.headers.common.Authorization = 'Basic YXBpOnBhc3N3b3Jk';\n\n      this.$http.get('/node/1', function(node) {\n        this.$set('node', node);\n      });\n\n    }\n  },\n\n});\n```\n\nThanks!\n"},"comment":{"url":"https://api.github.com/repos/pagekit/vue-resource/issues/comments/314092066","html_url":"https://github.com/pagekit/vue-resource/issues/14#issuecomment-314092066","issue_url":"https://api.github.com/repos/pagekit/vue-resource/issues/14","id":314092066,"user":{"login":"steffans","id":321013,"avatar_url":"https://avatars2.githubusercontent.com/u/321013?v=3","gravatar_id":"","url":"https://api.github.com/users/steffans","html_url":"https://github.com/steffans","followers_url":"https://api.github.com/users/steffans/followers","following_url":"https://api.github.com/users/steffans/following{/other_user}","gists_url":"https://api.github.com/users/steffans/gists{/gist_id}","starred_url":"https://api.github.com/users/steffans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steffans/subscriptions","organizations_url":"https://api.github.com/users/steffans/orgs","repos_url":"https://api.github.com/users/steffans/repos","events_url":"https://api.github.com/users/steffans/events{/privacy}","received_events_url":"https://api.github.com/users/steffans/received_events","type":"User","site_admin":false},"created_at":"2017-07-10T12:34:27Z","updated_at":"2017-07-10T12:34:27Z","body":"Check out the second example here: https://github.com/pagekit/vue-resource/blob/develop/docs/http.md#example"}}
{"actor":{"display_login":"steffans"}}