{"action":"created","comment":{"url":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/comments/45844555","id":45844555,"diff_hunk":"@@ -206,18 +212,25 @@ angular.module('angular-hal', [])\n             if (!options.headers['Content-Type']) options.headers['Content-Type'] = 'application/json';\n             if (!options.headers.Accept) options.headers.Accept = 'application/hal+json,application/json';\n \n+            var config = {\n+                 method: method,\n+                 url: options.transformUrl ? options.transformUrl(href) : href,\n+                 headers: options.headers,\n+                 data: data\n+            };\n+            if (options.httpConfig) {\n+              config = angular.extend(config, options.httpConfig);\n+            }\n+\n             var resource = (\n-                $http({\n-                    method: method,\n-                    url: options.transformUrl ? options.transformUrl(href) : href,\n-                    headers: options.headers,\n-                    data: data\n-                })\n+                $http(config)\n                 .then(function (res) {\n \n                     switch (Math.floor(res.status / 100)) {\n                     case 2:\n-                        if (res.data) return createResource(href, options, res.data);\n+                        if (res.data) {\n+                            if (res.data) return createResource(href, options, res.data, res);","path":"angular-hal.js","position":137,"original_position":137,"commit_id":"0fe592a89baa7fcfd6b381925f17fc9229008507","original_commit_id":"0fe592a89baa7fcfd6b381925f17fc9229008507","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long.<br>Expected '{' and instead saw 'return'.","created_at":"2015-11-25T09:26:21Z","updated_at":"2015-11-25T09:26:21Z","html_url":"https://github.com/LuvDaSun/angular-hal/pull/31#discussion_r45844555","pull_request_url":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/comments/45844555"},"html":{"href":"https://github.com/LuvDaSun/angular-hal/pull/31#discussion_r45844555"},"pull_request":{"href":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/31","id":51769629,"html_url":"https://github.com/LuvDaSun/angular-hal/pull/31","diff_url":"https://github.com/LuvDaSun/angular-hal/pull/31.diff","patch_url":"https://github.com/LuvDaSun/angular-hal/pull/31.patch","issue_url":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/31","number":31,"state":"open","locked":false,"title":"as discussed by mail, asking for pull to access to response headers from Resource","user":{"login":"francescobragagna","id":13520963,"avatar_url":"https://avatars.githubusercontent.com/u/13520963?v=3","gravatar_id":"","url":"https://api.github.com/users/francescobragagna","html_url":"https://github.com/francescobragagna","followers_url":"https://api.github.com/users/francescobragagna/followers","following_url":"https://api.github.com/users/francescobragagna/following{/other_user}","gists_url":"https://api.github.com/users/francescobragagna/gists{/gist_id}","starred_url":"https://api.github.com/users/francescobragagna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francescobragagna/subscriptions","organizations_url":"https://api.github.com/users/francescobragagna/orgs","repos_url":"https://api.github.com/users/francescobragagna/repos","events_url":"https://api.github.com/users/francescobragagna/events{/privacy}","received_events_url":"https://api.github.com/users/francescobragagna/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-25T09:26:18Z","updated_at":"2015-11-25T09:26:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ce56749c036fec99418f42572eae55fb2ecdb09","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/31/commits","review_comments_url":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/31/comments","review_comment_url":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/31/comments","statuses_url":"https://api.github.com/repos/LuvDaSun/angular-hal/statuses/0fe592a89baa7fcfd6b381925f17fc9229008507","head":{"label":"erikogenvik:master","ref":"master","sha":"0fe592a89baa7fcfd6b381925f17fc9229008507","user":{"login":"erikogenvik","id":89184,"avatar_url":"https://avatars.githubusercontent.com/u/89184?v=3","gravatar_id":"","url":"https://api.github.com/users/erikogenvik","html_url":"https://github.com/erikogenvik","followers_url":"https://api.github.com/users/erikogenvik/followers","following_url":"https://api.github.com/users/erikogenvik/following{/other_user}","gists_url":"https://api.github.com/users/erikogenvik/gists{/gist_id}","starred_url":"https://api.github.com/users/erikogenvik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikogenvik/subscriptions","organizations_url":"https://api.github.com/users/erikogenvik/orgs","repos_url":"https://api.github.com/users/erikogenvik/repos","events_url":"https://api.github.com/users/erikogenvik/events{/privacy}","received_events_url":"https://api.github.com/users/erikogenvik/received_events","type":"User","site_admin":false},"repo":{"id":43638872,"name":"angular-hal","full_name":"erikogenvik/angular-hal","owner":{"login":"erikogenvik","id":89184,"avatar_url":"https://avatars.githubusercontent.com/u/89184?v=3","gravatar_id":"","url":"https://api.github.com/users/erikogenvik","html_url":"https://github.com/erikogenvik","followers_url":"https://api.github.com/users/erikogenvik/followers","following_url":"https://api.github.com/users/erikogenvik/following{/other_user}","gists_url":"https://api.github.com/users/erikogenvik/gists{/gist_id}","starred_url":"https://api.github.com/users/erikogenvik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikogenvik/subscriptions","organizations_url":"https://api.github.com/users/erikogenvik/orgs","repos_url":"https://api.github.com/users/erikogenvik/repos","events_url":"https://api.github.com/users/erikogenvik/events{/privacy}","received_events_url":"https://api.github.com/users/erikogenvik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erikogenvik/angular-hal","description":"HAL client for angularjs","fork":true,"url":"https://api.github.com/repos/erikogenvik/angular-hal","forks_url":"https://api.github.com/repos/erikogenvik/angular-hal/forks","keys_url":"https://api.github.com/repos/erikogenvik/angular-hal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erikogenvik/angular-hal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erikogenvik/angular-hal/teams","hooks_url":"https://api.github.com/repos/erikogenvik/angular-hal/hooks","issue_events_url":"https://api.github.com/repos/erikogenvik/angular-hal/issues/events{/number}","events_url":"https://api.github.com/repos/erikogenvik/angular-hal/events","assignees_url":"https://api.github.com/repos/erikogenvik/angular-hal/assignees{/user}","branches_url":"https://api.github.com/repos/erikogenvik/angular-hal/branches{/branch}","tags_url":"https://api.github.com/repos/erikogenvik/angular-hal/tags","blobs_url":"https://api.github.com/repos/erikogenvik/angular-hal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erikogenvik/angular-hal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erikogenvik/angular-hal/git/refs{/sha}","trees_url":"https://api.github.com/repos/erikogenvik/angular-hal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erikogenvik/angular-hal/statuses/{sha}","languages_url":"https://api.github.com/repos/erikogenvik/angular-hal/languages","stargazers_url":"https://api.github.com/repos/erikogenvik/angular-hal/stargazers","contributors_url":"https://api.github.com/repos/erikogenvik/angular-hal/contributors","subscribers_url":"https://api.github.com/repos/erikogenvik/angular-hal/subscribers","subscription_url":"https://api.github.com/repos/erikogenvik/angular-hal/subscription","commits_url":"https://api.github.com/repos/erikogenvik/angular-hal/commits{/sha}","git_commits_url":"https://api.github.com/repos/erikogenvik/angular-hal/git/commits{/sha}","comments_url":"https://api.github.com/repos/erikogenvik/angular-hal/comments{/number}","issue_comment_url":"https://api.github.com/repos/erikogenvik/angular-hal/issues/comments{/number}","contents_url":"https://api.github.com/repos/erikogenvik/angular-hal/contents/{+path}","compare_url":"https://api.github.com/repos/erikogenvik/angular-hal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erikogenvik/angular-hal/merges","archive_url":"https://api.github.com/repos/erikogenvik/angular-hal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erikogenvik/angular-hal/downloads","issues_url":"https://api.github.com/repos/erikogenvik/angular-hal/issues{/number}","pulls_url":"https://api.github.com/repos/erikogenvik/angular-hal/pulls{/number}","milestones_url":"https://api.github.com/repos/erikogenvik/angular-hal/milestones{/number}","notifications_url":"https://api.github.com/repos/erikogenvik/angular-hal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erikogenvik/angular-hal/labels{/name}","releases_url":"https://api.github.com/repos/erikogenvik/angular-hal/releases{/id}","created_at":"2015-10-04T14:19:43Z","updated_at":"2015-11-23T15:05:00Z","pushed_at":"2015-10-04T17:01:45Z","git_url":"git://github.com/erikogenvik/angular-hal.git","ssh_url":"git@github.com:erikogenvik/angular-hal.git","clone_url":"https://github.com/erikogenvik/angular-hal.git","svn_url":"https://github.com/erikogenvik/angular-hal","homepage":"","size":162,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"LuvDaSun:master","ref":"master","sha":"524278d6bebb38e265aca8c819893baa44633909","user":{"login":"LuvDaSun","id":5626783,"avatar_url":"https://avatars.githubusercontent.com/u/5626783?v=3","gravatar_id":"","url":"https://api.github.com/users/LuvDaSun","html_url":"https://github.com/LuvDaSun","followers_url":"https://api.github.com/users/LuvDaSun/followers","following_url":"https://api.github.com/users/LuvDaSun/following{/other_user}","gists_url":"https://api.github.com/users/LuvDaSun/gists{/gist_id}","starred_url":"https://api.github.com/users/LuvDaSun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuvDaSun/subscriptions","organizations_url":"https://api.github.com/users/LuvDaSun/orgs","repos_url":"https://api.github.com/users/LuvDaSun/repos","events_url":"https://api.github.com/users/LuvDaSun/events{/privacy}","received_events_url":"https://api.github.com/users/LuvDaSun/received_events","type":"Organization","site_admin":false},"repo":{"id":10568769,"name":"angular-hal","full_name":"LuvDaSun/angular-hal","owner":{"login":"LuvDaSun","id":5626783,"avatar_url":"https://avatars.githubusercontent.com/u/5626783?v=3","gravatar_id":"","url":"https://api.github.com/users/LuvDaSun","html_url":"https://github.com/LuvDaSun","followers_url":"https://api.github.com/users/LuvDaSun/followers","following_url":"https://api.github.com/users/LuvDaSun/following{/other_user}","gists_url":"https://api.github.com/users/LuvDaSun/gists{/gist_id}","starred_url":"https://api.github.com/users/LuvDaSun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuvDaSun/subscriptions","organizations_url":"https://api.github.com/users/LuvDaSun/orgs","repos_url":"https://api.github.com/users/LuvDaSun/repos","events_url":"https://api.github.com/users/LuvDaSun/events{/privacy}","received_events_url":"https://api.github.com/users/LuvDaSun/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LuvDaSun/angular-hal","description":"HAL client for angularjs","fork":false,"url":"https://api.github.com/repos/LuvDaSun/angular-hal","forks_url":"https://api.github.com/repos/LuvDaSun/angular-hal/forks","keys_url":"https://api.github.com/repos/LuvDaSun/angular-hal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LuvDaSun/angular-hal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LuvDaSun/angular-hal/teams","hooks_url":"https://api.github.com/repos/LuvDaSun/angular-hal/hooks","issue_events_url":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/events{/number}","events_url":"https://api.github.com/repos/LuvDaSun/angular-hal/events","assignees_url":"https://api.github.com/repos/LuvDaSun/angular-hal/assignees{/user}","branches_url":"https://api.github.com/repos/LuvDaSun/angular-hal/branches{/branch}","tags_url":"https://api.github.com/repos/LuvDaSun/angular-hal/tags","blobs_url":"https://api.github.com/repos/LuvDaSun/angular-hal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LuvDaSun/angular-hal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LuvDaSun/angular-hal/git/refs{/sha}","trees_url":"https://api.github.com/repos/LuvDaSun/angular-hal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LuvDaSun/angular-hal/statuses/{sha}","languages_url":"https://api.github.com/repos/LuvDaSun/angular-hal/languages","stargazers_url":"https://api.github.com/repos/LuvDaSun/angular-hal/stargazers","contributors_url":"https://api.github.com/repos/LuvDaSun/angular-hal/contributors","subscribers_url":"https://api.github.com/repos/LuvDaSun/angular-hal/subscribers","subscription_url":"https://api.github.com/repos/LuvDaSun/angular-hal/subscription","commits_url":"https://api.github.com/repos/LuvDaSun/angular-hal/commits{/sha}","git_commits_url":"https://api.github.com/repos/LuvDaSun/angular-hal/git/commits{/sha}","comments_url":"https://api.github.com/repos/LuvDaSun/angular-hal/comments{/number}","issue_comment_url":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/comments{/number}","contents_url":"https://api.github.com/repos/LuvDaSun/angular-hal/contents/{+path}","compare_url":"https://api.github.com/repos/LuvDaSun/angular-hal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LuvDaSun/angular-hal/merges","archive_url":"https://api.github.com/repos/LuvDaSun/angular-hal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LuvDaSun/angular-hal/downloads","issues_url":"https://api.github.com/repos/LuvDaSun/angular-hal/issues{/number}","pulls_url":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls{/number}","milestones_url":"https://api.github.com/repos/LuvDaSun/angular-hal/milestones{/number}","notifications_url":"https://api.github.com/repos/LuvDaSun/angular-hal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LuvDaSun/angular-hal/labels{/name}","releases_url":"https://api.github.com/repos/LuvDaSun/angular-hal/releases{/id}","created_at":"2013-06-08T13:18:37Z","updated_at":"2015-11-23T15:04:53Z","pushed_at":"2015-11-25T09:26:18Z","git_url":"git://github.com/LuvDaSun/angular-hal.git","ssh_url":"git@github.com:LuvDaSun/angular-hal.git","clone_url":"https://github.com/LuvDaSun/angular-hal.git","svn_url":"https://github.com/LuvDaSun/angular-hal","homepage":"","size":552,"stargazers_count":91,"watchers_count":91,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":17,"forks":28,"open_issues":17,"watchers":91,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/31"},"html":{"href":"https://github.com/LuvDaSun/angular-hal/pull/31"},"issue":{"href":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/31"},"comments":{"href":"https://api.github.com/repos/LuvDaSun/angular-hal/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LuvDaSun/angular-hal/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/LuvDaSun/angular-hal/statuses/0fe592a89baa7fcfd6b381925f17fc9229008507"}}}}