{"action":"opened","number":72,"pull_request":{"url":"https://api.github.com/repos/rollbar/node_rollbar/pulls/72","id":59400808,"html_url":"https://github.com/rollbar/node_rollbar/pull/72","diff_url":"https://github.com/rollbar/node_rollbar/pull/72.diff","patch_url":"https://github.com/rollbar/node_rollbar/pull/72.patch","issue_url":"https://api.github.com/repos/rollbar/node_rollbar/issues/72","number":72,"state":"open","locked":false,"title":"Fix buildRequestData when req.body is a plain object","user":{"login":"jondeandres","id":122581,"avatar_url":"https://avatars.githubusercontent.com/u/122581?v=3","gravatar_id":"","url":"https://api.github.com/users/jondeandres","html_url":"https://github.com/jondeandres","followers_url":"https://api.github.com/users/jondeandres/followers","following_url":"https://api.github.com/users/jondeandres/following{/other_user}","gists_url":"https://api.github.com/users/jondeandres/gists{/gist_id}","starred_url":"https://api.github.com/users/jondeandres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jondeandres/subscriptions","organizations_url":"https://api.github.com/users/jondeandres/orgs","repos_url":"https://api.github.com/users/jondeandres/repos","events_url":"https://api.github.com/users/jondeandres/events{/privacy}","received_events_url":"https://api.github.com/users/jondeandres/received_events","type":"User","site_admin":false},"body":"Some libraries, like [multer](https://github.com/expressjs/multer) create `req.body` in this way:\r\n\r\n`req.body = Object.create(null)`\r\n\r\nIn that case we cannot call `req.body.hasOwnProperty()`. In this PR we check that `req.body` has `hasOwnProperty` function or the `req.body.constructor` is undefined, so it is a plain `Object` and we\r\ncan be sure that the keys are part of the body","created_at":"2016-02-15T18:45:53Z","updated_at":"2016-02-15T18:45:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rollbar/node_rollbar/pulls/72/commits","review_comments_url":"https://api.github.com/repos/rollbar/node_rollbar/pulls/72/comments","review_comment_url":"https://api.github.com/repos/rollbar/node_rollbar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rollbar/node_rollbar/issues/72/comments","statuses_url":"https://api.github.com/repos/rollbar/node_rollbar/statuses/7ec3c7e1479f32351b0f94bf3278006015e909fe","head":{"label":"rollbar:fix-build-request-data","ref":"fix-build-request-data","sha":"7ec3c7e1479f32351b0f94bf3278006015e909fe","user":{"login":"rollbar","id":3219584,"avatar_url":"https://avatars.githubusercontent.com/u/3219584?v=3","gravatar_id":"","url":"https://api.github.com/users/rollbar","html_url":"https://github.com/rollbar","followers_url":"https://api.github.com/users/rollbar/followers","following_url":"https://api.github.com/users/rollbar/following{/other_user}","gists_url":"https://api.github.com/users/rollbar/gists{/gist_id}","starred_url":"https://api.github.com/users/rollbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rollbar/subscriptions","organizations_url":"https://api.github.com/users/rollbar/orgs","repos_url":"https://api.github.com/users/rollbar/repos","events_url":"https://api.github.com/users/rollbar/events{/privacy}","received_events_url":"https://api.github.com/users/rollbar/received_events","type":"Organization","site_admin":false},"repo":{"id":5408359,"name":"node_rollbar","full_name":"rollbar/node_rollbar","owner":{"login":"rollbar","id":3219584,"avatar_url":"https://avatars.githubusercontent.com/u/3219584?v=3","gravatar_id":"","url":"https://api.github.com/users/rollbar","html_url":"https://github.com/rollbar","followers_url":"https://api.github.com/users/rollbar/followers","following_url":"https://api.github.com/users/rollbar/following{/other_user}","gists_url":"https://api.github.com/users/rollbar/gists{/gist_id}","starred_url":"https://api.github.com/users/rollbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rollbar/subscriptions","organizations_url":"https://api.github.com/users/rollbar/orgs","repos_url":"https://api.github.com/users/rollbar/repos","events_url":"https://api.github.com/users/rollbar/events{/privacy}","received_events_url":"https://api.github.com/users/rollbar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rollbar/node_rollbar","description":"A node.js client for the Rollbar error tracking service.","fork":false,"url":"https://api.github.com/repos/rollbar/node_rollbar","forks_url":"https://api.github.com/repos/rollbar/node_rollbar/forks","keys_url":"https://api.github.com/repos/rollbar/node_rollbar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rollbar/node_rollbar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rollbar/node_rollbar/teams","hooks_url":"https://api.github.com/repos/rollbar/node_rollbar/hooks","issue_events_url":"https://api.github.com/repos/rollbar/node_rollbar/issues/events{/number}","events_url":"https://api.github.com/repos/rollbar/node_rollbar/events","assignees_url":"https://api.github.com/repos/rollbar/node_rollbar/assignees{/user}","branches_url":"https://api.github.com/repos/rollbar/node_rollbar/branches{/branch}","tags_url":"https://api.github.com/repos/rollbar/node_rollbar/tags","blobs_url":"https://api.github.com/repos/rollbar/node_rollbar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rollbar/node_rollbar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rollbar/node_rollbar/git/refs{/sha}","trees_url":"https://api.github.com/repos/rollbar/node_rollbar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rollbar/node_rollbar/statuses/{sha}","languages_url":"https://api.github.com/repos/rollbar/node_rollbar/languages","stargazers_url":"https://api.github.com/repos/rollbar/node_rollbar/stargazers","contributors_url":"https://api.github.com/repos/rollbar/node_rollbar/contributors","subscribers_url":"https://api.github.com/repos/rollbar/node_rollbar/subscribers","subscription_url":"https://api.github.com/repos/rollbar/node_rollbar/subscription","commits_url":"https://api.github.com/repos/rollbar/node_rollbar/commits{/sha}","git_commits_url":"https://api.github.com/repos/rollbar/node_rollbar/git/commits{/sha}","comments_url":"https://api.github.com/repos/rollbar/node_rollbar/comments{/number}","issue_comment_url":"https://api.github.com/repos/rollbar/node_rollbar/issues/comments{/number}","contents_url":"https://api.github.com/repos/rollbar/node_rollbar/contents/{+path}","compare_url":"https://api.github.com/repos/rollbar/node_rollbar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rollbar/node_rollbar/merges","archive_url":"https://api.github.com/repos/rollbar/node_rollbar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rollbar/node_rollbar/downloads","issues_url":"https://api.github.com/repos/rollbar/node_rollbar/issues{/number}","pulls_url":"https://api.github.com/repos/rollbar/node_rollbar/pulls{/number}","milestones_url":"https://api.github.com/repos/rollbar/node_rollbar/milestones{/number}","notifications_url":"https://api.github.com/repos/rollbar/node_rollbar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rollbar/node_rollbar/labels{/name}","releases_url":"https://api.github.com/repos/rollbar/node_rollbar/releases{/id}","deployments_url":"https://api.github.com/repos/rollbar/node_rollbar/deployments","created_at":"2012-08-14T04:31:20Z","updated_at":"2016-01-29T23:34:32Z","pushed_at":"2016-02-15T18:45:54Z","git_url":"git://github.com/rollbar/node_rollbar.git","ssh_url":"git@github.com:rollbar/node_rollbar.git","clone_url":"https://github.com/rollbar/node_rollbar.git","svn_url":"https://github.com/rollbar/node_rollbar","homepage":"https://rollbar.com/docs/notifier/node_rollbar/","size":228,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":15,"forks":41,"open_issues":15,"watchers":31,"default_branch":"master"}},"base":{"label":"rollbar:master","ref":"master","sha":"826616c1188c2b6e555272e0dd8412bd6a6abb12","user":{"login":"rollbar","id":3219584,"avatar_url":"https://avatars.githubusercontent.com/u/3219584?v=3","gravatar_id":"","url":"https://api.github.com/users/rollbar","html_url":"https://github.com/rollbar","followers_url":"https://api.github.com/users/rollbar/followers","following_url":"https://api.github.com/users/rollbar/following{/other_user}","gists_url":"https://api.github.com/users/rollbar/gists{/gist_id}","starred_url":"https://api.github.com/users/rollbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rollbar/subscriptions","organizations_url":"https://api.github.com/users/rollbar/orgs","repos_url":"https://api.github.com/users/rollbar/repos","events_url":"https://api.github.com/users/rollbar/events{/privacy}","received_events_url":"https://api.github.com/users/rollbar/received_events","type":"Organization","site_admin":false},"repo":{"id":5408359,"name":"node_rollbar","full_name":"rollbar/node_rollbar","owner":{"login":"rollbar","id":3219584,"avatar_url":"https://avatars.githubusercontent.com/u/3219584?v=3","gravatar_id":"","url":"https://api.github.com/users/rollbar","html_url":"https://github.com/rollbar","followers_url":"https://api.github.com/users/rollbar/followers","following_url":"https://api.github.com/users/rollbar/following{/other_user}","gists_url":"https://api.github.com/users/rollbar/gists{/gist_id}","starred_url":"https://api.github.com/users/rollbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rollbar/subscriptions","organizations_url":"https://api.github.com/users/rollbar/orgs","repos_url":"https://api.github.com/users/rollbar/repos","events_url":"https://api.github.com/users/rollbar/events{/privacy}","received_events_url":"https://api.github.com/users/rollbar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rollbar/node_rollbar","description":"A node.js client for the Rollbar error tracking service.","fork":false,"url":"https://api.github.com/repos/rollbar/node_rollbar","forks_url":"https://api.github.com/repos/rollbar/node_rollbar/forks","keys_url":"https://api.github.com/repos/rollbar/node_rollbar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rollbar/node_rollbar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rollbar/node_rollbar/teams","hooks_url":"https://api.github.com/repos/rollbar/node_rollbar/hooks","issue_events_url":"https://api.github.com/repos/rollbar/node_rollbar/issues/events{/number}","events_url":"https://api.github.com/repos/rollbar/node_rollbar/events","assignees_url":"https://api.github.com/repos/rollbar/node_rollbar/assignees{/user}","branches_url":"https://api.github.com/repos/rollbar/node_rollbar/branches{/branch}","tags_url":"https://api.github.com/repos/rollbar/node_rollbar/tags","blobs_url":"https://api.github.com/repos/rollbar/node_rollbar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rollbar/node_rollbar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rollbar/node_rollbar/git/refs{/sha}","trees_url":"https://api.github.com/repos/rollbar/node_rollbar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rollbar/node_rollbar/statuses/{sha}","languages_url":"https://api.github.com/repos/rollbar/node_rollbar/languages","stargazers_url":"https://api.github.com/repos/rollbar/node_rollbar/stargazers","contributors_url":"https://api.github.com/repos/rollbar/node_rollbar/contributors","subscribers_url":"https://api.github.com/repos/rollbar/node_rollbar/subscribers","subscription_url":"https://api.github.com/repos/rollbar/node_rollbar/subscription","commits_url":"https://api.github.com/repos/rollbar/node_rollbar/commits{/sha}","git_commits_url":"https://api.github.com/repos/rollbar/node_rollbar/git/commits{/sha}","comments_url":"https://api.github.com/repos/rollbar/node_rollbar/comments{/number}","issue_comment_url":"https://api.github.com/repos/rollbar/node_rollbar/issues/comments{/number}","contents_url":"https://api.github.com/repos/rollbar/node_rollbar/contents/{+path}","compare_url":"https://api.github.com/repos/rollbar/node_rollbar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rollbar/node_rollbar/merges","archive_url":"https://api.github.com/repos/rollbar/node_rollbar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rollbar/node_rollbar/downloads","issues_url":"https://api.github.com/repos/rollbar/node_rollbar/issues{/number}","pulls_url":"https://api.github.com/repos/rollbar/node_rollbar/pulls{/number}","milestones_url":"https://api.github.com/repos/rollbar/node_rollbar/milestones{/number}","notifications_url":"https://api.github.com/repos/rollbar/node_rollbar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rollbar/node_rollbar/labels{/name}","releases_url":"https://api.github.com/repos/rollbar/node_rollbar/releases{/id}","deployments_url":"https://api.github.com/repos/rollbar/node_rollbar/deployments","created_at":"2012-08-14T04:31:20Z","updated_at":"2016-01-29T23:34:32Z","pushed_at":"2016-02-15T18:45:54Z","git_url":"git://github.com/rollbar/node_rollbar.git","ssh_url":"git@github.com:rollbar/node_rollbar.git","clone_url":"https://github.com/rollbar/node_rollbar.git","svn_url":"https://github.com/rollbar/node_rollbar","homepage":"https://rollbar.com/docs/notifier/node_rollbar/","size":228,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":15,"forks":41,"open_issues":15,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rollbar/node_rollbar/pulls/72"},"html":{"href":"https://github.com/rollbar/node_rollbar/pull/72"},"issue":{"href":"https://api.github.com/repos/rollbar/node_rollbar/issues/72"},"comments":{"href":"https://api.github.com/repos/rollbar/node_rollbar/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/rollbar/node_rollbar/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/rollbar/node_rollbar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rollbar/node_rollbar/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/rollbar/node_rollbar/statuses/7ec3c7e1479f32351b0f94bf3278006015e909fe"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}