{"action":"created","issue":{"url":"https://api.github.com/repos/CrowdProcess/superagent-hawk/issues/5","labels_url":"https://api.github.com/repos/CrowdProcess/superagent-hawk/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/CrowdProcess/superagent-hawk/issues/5/comments","events_url":"https://api.github.com/repos/CrowdProcess/superagent-hawk/issues/5/events","html_url":"https://github.com/CrowdProcess/superagent-hawk/pull/5","id":62310155,"number":5,"title":"Increase flexibility by decoupling hawk signing from `.hawk()` call","user":{"login":"replay","id":195371,"avatar_url":"https://avatars.githubusercontent.com/u/195371?v=3","gravatar_id":"","url":"https://api.github.com/users/replay","html_url":"https://github.com/replay","followers_url":"https://api.github.com/users/replay/followers","following_url":"https://api.github.com/users/replay/following{/other_user}","gists_url":"https://api.github.com/users/replay/gists{/gist_id}","starred_url":"https://api.github.com/users/replay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/replay/subscriptions","organizations_url":"https://api.github.com/users/replay/orgs","repos_url":"https://api.github.com/users/replay/repos","events_url":"https://api.github.com/users/replay/events{/privacy}","received_events_url":"https://api.github.com/users/replay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T06:51:06Z","updated_at":"2015-03-17T13:42:00Z","closed_at":"2015-03-17T13:41:53Z","pull_request":{"url":"https://api.github.com/repos/CrowdProcess/superagent-hawk/pulls/5","html_url":"https://github.com/CrowdProcess/superagent-hawk/pull/5","diff_url":"https://github.com/CrowdProcess/superagent-hawk/pull/5.diff","patch_url":"https://github.com/CrowdProcess/superagent-hawk/pull/5.patch"},"body":"This change increases the flexibility regarding when `.hawk()` must be called.\r\n\r\nBefore this change the request header was generated and added to the request directly in the `.hawk()` method. After the change calling `.hawk()` only enables request signing, but the generation of the header is done later when `.end()` is called. This means that the order in which `.hawk()` and other methods that might be called on a request object doesn't matter anymore, as long as `.end()` is called last."},"comment":{"url":"https://api.github.com/repos/CrowdProcess/superagent-hawk/issues/comments/82357733","html_url":"https://github.com/CrowdProcess/superagent-hawk/pull/5#issuecomment-82357733","issue_url":"https://api.github.com/repos/CrowdProcess/superagent-hawk/issues/5","id":82357733,"user":{"login":"joaojeronimo","id":622337,"avatar_url":"https://avatars.githubusercontent.com/u/622337?v=3","gravatar_id":"","url":"https://api.github.com/users/joaojeronimo","html_url":"https://github.com/joaojeronimo","followers_url":"https://api.github.com/users/joaojeronimo/followers","following_url":"https://api.github.com/users/joaojeronimo/following{/other_user}","gists_url":"https://api.github.com/users/joaojeronimo/gists{/gist_id}","starred_url":"https://api.github.com/users/joaojeronimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaojeronimo/subscriptions","organizations_url":"https://api.github.com/users/joaojeronimo/orgs","repos_url":"https://api.github.com/users/joaojeronimo/repos","events_url":"https://api.github.com/users/joaojeronimo/events{/privacy}","received_events_url":"https://api.github.com/users/joaojeronimo/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T13:42:00Z","updated_at":"2015-03-17T13:42:00Z","body":"Looks good, thanks!"}}