GitHub PullRequestEvent at 2014-04-03 10:46:26
Repository: rent-it-client
Actor: majjoha
Payload: {"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/mex/rent-it-client/pulls/15","id":14324959,"html_url":"https://github.com/mex/rent-it-client/pull/15","diff_url":"https://github.com/mex/rent-it-client/pull/15.diff","patch_url":"https://github.com/mex/rent-it-client/pull/15.patch","issue_url":"https://api.github.com/repos/mex/rent-it-client/issues/15","number":15,"state":"open","title":"Fix issues related to PUT and POST.","user":{"login":"majjoha","id":233988,"avatar_url":"https://avatars.githubusercontent.com/u/233988?","gravatar_id":"f827d506c344fdbd774f5bf36ecaeae4","url":"https://api.github.com/users/majjoha","html_url":"https://github.com/majjoha","followers_url":"https://api.github.com/users/majjoha/followers","following_url":"https://api.github.com/users/majjoha/following{/other_user}","gists_url":"https://api.github.com/users/majjoha/gists{/gist_id}","starred_url":"https://api.github.com/users/majjoha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majjoha/subscriptions","organizations_url":"https://api.github.com/users/majjoha/orgs","repos_url":"https://api.github.com/users/majjoha/repos","events_url":"https://api.github.com/users/majjoha/events{/privacy}","received_events_url":"https://api.github.com/users/majjoha/received_events","type":"User","site_admin":false},"body":"In order to fix the issue mentioned in https://github.com/mex/rent-it-client/pull/8, we need to set the ``Content-Type`` to ``application/json`` when the HTTP method is a POST or PUT request. Furthermore, we need to pass in ``options.body`` for the ``JSON.parse`` method instead of ``body``.","created_at":"2014-04-03T10:46:26Z","updated_at":"2014-04-03T10:46:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mex/rent-it-client/pulls/15/commits","review_comments_url":"https://api.github.com/repos/mex/rent-it-client/pulls/15/comments","review_comment_url":"https://api.github.com/repos/mex/rent-it-client/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mex/rent-it-client/issues/15/comments","statuses_url":"https://api.github.com/repos/mex/rent-it-client/statuses/37b123ee3ebf2e481ce584dd9bd0667453d16204","head":{"label":"mex:majjoha/fix-requestjs","ref":"majjoha/fix-requestjs","sha":"37b123ee3ebf2e481ce584dd9bd0667453d16204","user":{"login":"mex","id":1029455,"avatar_url":"https://avatars.githubusercontent.com/u/1029455?","gravatar_id":"d367bef01fe5fcbb489b30a3c27e6009","url":"https://api.github.com/users/mex","html_url":"https://github.com/mex","followers_url":"https://api.github.com/users/mex/followers","following_url":"https://api.github.com/users/mex/following{/other_user}","gists_url":"https://api.github.com/users/mex/gists{/gist_id}","starred_url":"https://api.github.com/users/mex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mex/subscriptions","organizations_url":"https://api.github.com/users/mex/orgs","repos_url":"https://api.github.com/users/mex/repos","events_url":"https://api.github.com/users/mex/events{/privacy}","received_events_url":"https://api.github.com/users/mex/received_events","type":"User","site_admin":false},"repo":{"id":17859531,"name":"rent-it-client","full_name":"mex/rent-it-client","owner":{"login":"mex","id":1029455,"avatar_url":"https://avatars.githubusercontent.com/u/1029455?","gravatar_id":"d367bef01fe5fcbb489b30a3c27e6009","url":"https://api.github.com/users/mex","html_url":"https://github.com/mex","followers_url":"https://api.github.com/users/mex/followers","following_url":"https://api.github.com/users/mex/following{/other_user}","gists_url":"https://api.github.com/users/mex/gists{/gist_id}","starred_url":"https://api.github.com/users/mex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mex/subscriptions","organizations_url":"https://api.github.com/users/mex/orgs","repos_url":"https://api.github.com/users/mex/repos","events_url":"https://api.github.com/users/mex/events{/privacy}","received_events_url":"https://api.github.com/users/mex/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mex/rent-it-client","description":"NodeJS client for RentIt project","fork":false,"url":"https://api.github.com/repos/mex/rent-it-client","forks_url":"https://api.github.com/repos/mex/rent-it-client/forks","keys_url":"https://api.github.com/repos/mex/rent-it-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mex/rent-it-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mex/rent-it-client/teams","hooks_url":"https://api.github.com/repos/mex/rent-it-client/hooks","issue_events_url":"https://api.github.com/repos/mex/rent-it-client/issues/events{/number}","events_url":"https://api.github.com/repos/mex/rent-it-client/events","assignees_url":"https://api.github.com/repos/mex/rent-it-client/assignees{/user}","branches_url":"https://api.github.com/repos/mex/rent-it-client/branches{/branch}","tags_url":"https://api.github.com/repos/mex/rent-it-client/tags","blobs_url":"https://api.github.com/repos/mex/rent-it-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mex/rent-it-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mex/rent-it-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/mex/rent-it-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mex/rent-it-client/statuses/{sha}","languages_url":"https://api.github.com/repos/mex/rent-it-client/languages","stargazers_url":"https://api.github.com/repos/mex/rent-it-client/stargazers","contributors_url":"https://api.github.com/repos/mex/rent-it-client/contributors","subscribers_url":"https://api.github.com/repos/mex/rent-it-client/subscribers","subscription_url":"https://api.github.com/repos/mex/rent-it-client/subscription","commits_url":"https://api.github.com/repos/mex/rent-it-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/mex/rent-it-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/mex/rent-it-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/mex/rent-it-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/mex/rent-it-client/contents/{+path}","compare_url":"https://api.github.com/repos/mex/rent-it-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mex/rent-it-client/merges","archive_url":"https://api.github.com/repos/mex/rent-it-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mex/rent-it-client/downloads","issues_url":"https://api.github.com/repos/mex/rent-it-client/issues{/number}","pulls_url":"https://api.github.com/repos/mex/rent-it-client/pulls{/number}","milestones_url":"https://api.github.com/repos/mex/rent-it-client/milestones{/number}","notifications_url":"https://api.github.com/repos/mex/rent-it-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mex/rent-it-client/labels{/name}","releases_url":"https://api.github.com/repos/mex/rent-it-client/releases{/id}","created_at":"2014-03-18T09:01:18Z","updated_at":"2014-04-03T10:46:26Z","pushed_at":"2014-04-03T10:42:32Z","git_url":"git://github.com/mex/rent-it-client.git","ssh_url":"git@github.com:mex/rent-it-client.git","clone_url":"https://github.com/mex/rent-it-client.git","svn_url":"https://github.com/mex/rent-it-client","homepage":null,"size":5468,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master","master_branch":"master"}},"base":{"label":"mex:master","ref":"master","sha":"0f9543a00cbdbdc434ad621ff9a3cdf2952b915a","user":{"login":"mex","id":1029455,"avatar_url":"https://avatars.githubusercontent.com/u/1029455?","gravatar_id":"d367bef01fe5fcbb489b30a3c27e6009","url":"https://api.github.com/users/mex","html_url":"https://github.com/mex","followers_url":"https://api.github.com/users/mex/followers","following_url":"https://api.github.com/users/mex/following{/other_user}","gists_url":"https://api.github.com/users/mex/gists{/gist_id}","starred_url":"https://api.github.com/users/mex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mex/subscriptions","organizations_url":"https://api.github.com/users/mex/orgs","repos_url":"https://api.github.com/users/mex/repos","events_url":"https://api.github.com/users/mex/events{/privacy}","received_events_url":"https://api.github.com/users/mex/received_events","type":"User","site_admin":false},"repo":{"id":17859531,"name":"rent-it-client","full_name":"mex/rent-it-client","owner":{"login":"mex","id":1029455,"avatar_url":"https://avatars.githubusercontent.com/u/1029455?","gravatar_id":"d367bef01fe5fcbb489b30a3c27e6009","url":"https://api.github.com/users/mex","html_url":"https://github.com/mex","followers_url":"https://api.github.com/users/mex/followers","following_url":"https://api.github.com/users/mex/following{/other_user}","gists_url":"https://api.github.com/users/mex/gists{/gist_id}","starred_url":"https://api.github.com/users/mex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mex/subscriptions","organizations_url":"https://api.github.com/users/mex/orgs","repos_url":"https://api.github.com/users/mex/repos","events_url":"https://api.github.com/users/mex/events{/privacy}","received_events_url":"https://api.github.com/users/mex/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mex/rent-it-client","description":"NodeJS client for RentIt project","fork":false,"url":"https://api.github.com/repos/mex/rent-it-client","forks_url":"https://api.github.com/repos/mex/rent-it-client/forks","keys_url":"https://api.github.com/repos/mex/rent-it-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mex/rent-it-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mex/rent-it-client/teams","hooks_url":"https://api.github.com/repos/mex/rent-it-client/hooks","issue_events_url":"https://api.github.com/repos/mex/rent-it-client/issues/events{/number}","events_url":"https://api.github.com/repos/mex/rent-it-client/events","assignees_url":"https://api.github.com/repos/mex/rent-it-client/assignees{/user}","branches_url":"https://api.github.com/repos/mex/rent-it-client/branches{/branch}","tags_url":"https://api.github.com/repos/mex/rent-it-client/tags","blobs_url":"https://api.github.com/repos/mex/rent-it-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mex/rent-it-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mex/rent-it-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/mex/rent-it-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mex/rent-it-client/statuses/{sha}","languages_url":"https://api.github.com/repos/mex/rent-it-client/languages","stargazers_url":"https://api.github.com/repos/mex/rent-it-client/stargazers","contributors_url":"https://api.github.com/repos/mex/rent-it-client/contributors","subscribers_url":"https://api.github.com/repos/mex/rent-it-client/subscribers","subscription_url":"https://api.github.com/repos/mex/rent-it-client/subscription","commits_url":"https://api.github.com/repos/mex/rent-it-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/mex/rent-it-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/mex/rent-it-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/mex/rent-it-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/mex/rent-it-client/contents/{+path}","compare_url":"https://api.github.com/repos/mex/rent-it-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mex/rent-it-client/merges","archive_url":"https://api.github.com/repos/mex/rent-it-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mex/rent-it-client/downloads","issues_url":"https://api.github.com/repos/mex/rent-it-client/issues{/number}","pulls_url":"https://api.github.com/repos/mex/rent-it-client/pulls{/number}","milestones_url":"https://api.github.com/repos/mex/rent-it-client/milestones{/number}","notifications_url":"https://api.github.com/repos/mex/rent-it-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mex/rent-it-client/labels{/name}","releases_url":"https://api.github.com/repos/mex/rent-it-client/releases{/id}","created_at":"2014-03-18T09:01:18Z","updated_at":"2014-04-03T10:46:26Z","pushed_at":"2014-04-03T10:42:32Z","git_url":"git://github.com/mex/rent-it-client.git","ssh_url":"git@github.com:mex/rent-it-client.git","clone_url":"https://github.com/mex/rent-it-client.git","svn_url":"https://github.com/mex/rent-it-client","homepage":null,"size":5468,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mex/rent-it-client/pulls/15"},"html":{"href":"https://github.com/mex/rent-it-client/pull/15"},"issue":{"href":"https://api.github.com/repos/mex/rent-it-client/issues/15"},"comments":{"href":"https://api.github.com/repos/mex/rent-it-client/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/mex/rent-it-client/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/mex/rent-it-client/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mex/rent-it-client/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/mex/rent-it-client/statuses/37b123ee3ebf2e481ce584dd9bd0667453d16204"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":2,"changed_files":1}}