{"action":"opened","number":436,"pull_request":{"url":"https://api.github.com/repos/theforeman/puppet-foreman/pulls/436","id":68073855,"html_url":"https://github.com/theforeman/puppet-foreman/pull/436","diff_url":"https://github.com/theforeman/puppet-foreman/pull/436.diff","patch_url":"https://github.com/theforeman/puppet-foreman/pull/436.patch","issue_url":"https://api.github.com/repos/theforeman/puppet-foreman/issues/436","number":436,"state":"open","locked":false,"title":"Fixes #14852 - do not pass in \"data\" param unless needed","user":{"login":"beav","id":563254,"avatar_url":"https://avatars.githubusercontent.com/u/563254?v=3","gravatar_id":"","url":"https://api.github.com/users/beav","html_url":"https://github.com/beav","followers_url":"https://api.github.com/users/beav/followers","following_url":"https://api.github.com/users/beav/following{/other_user}","gists_url":"https://api.github.com/users/beav/gists{/gist_id}","starred_url":"https://api.github.com/users/beav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beav/subscriptions","organizations_url":"https://api.github.com/users/beav/orgs","repos_url":"https://api.github.com/users/beav/repos","events_url":"https://api.github.com/users/beav/events{/privacy}","received_events_url":"https://api.github.com/users/beav/received_events","type":"User","site_admin":false},"body":"Previously, the \"data\" param was passed to all oauth requests. This caused\r\nissues with `GET` requests, since `data` and `headers` gets mashed into\r\n`*arguments`, and then the oauth gem will `shift` off the first argument if\r\nthere's a `POST` or `PUT` method. The end result was that headers weren't being\r\nsent on `GET` requests.\r\n\r\nInstead, only supply the \"data\" param if we are doing a `POST` or `PUT`.","created_at":"2016-04-27T15:29:21Z","updated_at":"2016-04-27T15:29:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/puppet-foreman/pulls/436/commits","review_comments_url":"https://api.github.com/repos/theforeman/puppet-foreman/pulls/436/comments","review_comment_url":"https://api.github.com/repos/theforeman/puppet-foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/puppet-foreman/issues/436/comments","statuses_url":"https://api.github.com/repos/theforeman/puppet-foreman/statuses/ddb7b308acfe14d943a2d3fd2efaa3bea1f90545","head":{"label":"beav:oauth-GET","ref":"oauth-GET","sha":"ddb7b308acfe14d943a2d3fd2efaa3bea1f90545","user":{"login":"beav","id":563254,"avatar_url":"https://avatars.githubusercontent.com/u/563254?v=3","gravatar_id":"","url":"https://api.github.com/users/beav","html_url":"https://github.com/beav","followers_url":"https://api.github.com/users/beav/followers","following_url":"https://api.github.com/users/beav/following{/other_user}","gists_url":"https://api.github.com/users/beav/gists{/gist_id}","starred_url":"https://api.github.com/users/beav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beav/subscriptions","organizations_url":"https://api.github.com/users/beav/orgs","repos_url":"https://api.github.com/users/beav/repos","events_url":"https://api.github.com/users/beav/events{/privacy}","received_events_url":"https://api.github.com/users/beav/received_events","type":"User","site_admin":false},"repo":{"id":57224512,"name":"puppet-foreman","full_name":"beav/puppet-foreman","owner":{"login":"beav","id":563254,"avatar_url":"https://avatars.githubusercontent.com/u/563254?v=3","gravatar_id":"","url":"https://api.github.com/users/beav","html_url":"https://github.com/beav","followers_url":"https://api.github.com/users/beav/followers","following_url":"https://api.github.com/users/beav/following{/other_user}","gists_url":"https://api.github.com/users/beav/gists{/gist_id}","starred_url":"https://api.github.com/users/beav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beav/subscriptions","organizations_url":"https://api.github.com/users/beav/orgs","repos_url":"https://api.github.com/users/beav/repos","events_url":"https://api.github.com/users/beav/events{/privacy}","received_events_url":"https://api.github.com/users/beav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beav/puppet-foreman","description":"Puppet module for Foreman","fork":true,"url":"https://api.github.com/repos/beav/puppet-foreman","forks_url":"https://api.github.com/repos/beav/puppet-foreman/forks","keys_url":"https://api.github.com/repos/beav/puppet-foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beav/puppet-foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beav/puppet-foreman/teams","hooks_url":"https://api.github.com/repos/beav/puppet-foreman/hooks","issue_events_url":"https://api.github.com/repos/beav/puppet-foreman/issues/events{/number}","events_url":"https://api.github.com/repos/beav/puppet-foreman/events","assignees_url":"https://api.github.com/repos/beav/puppet-foreman/assignees{/user}","branches_url":"https://api.github.com/repos/beav/puppet-foreman/branches{/branch}","tags_url":"https://api.github.com/repos/beav/puppet-foreman/tags","blobs_url":"https://api.github.com/repos/beav/puppet-foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beav/puppet-foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beav/puppet-foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/beav/puppet-foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beav/puppet-foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/beav/puppet-foreman/languages","stargazers_url":"https://api.github.com/repos/beav/puppet-foreman/stargazers","contributors_url":"https://api.github.com/repos/beav/puppet-foreman/contributors","subscribers_url":"https://api.github.com/repos/beav/puppet-foreman/subscribers","subscription_url":"https://api.github.com/repos/beav/puppet-foreman/subscription","commits_url":"https://api.github.com/repos/beav/puppet-foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/beav/puppet-foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/beav/puppet-foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/beav/puppet-foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/beav/puppet-foreman/contents/{+path}","compare_url":"https://api.github.com/repos/beav/puppet-foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beav/puppet-foreman/merges","archive_url":"https://api.github.com/repos/beav/puppet-foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beav/puppet-foreman/downloads","issues_url":"https://api.github.com/repos/beav/puppet-foreman/issues{/number}","pulls_url":"https://api.github.com/repos/beav/puppet-foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/beav/puppet-foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/beav/puppet-foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beav/puppet-foreman/labels{/name}","releases_url":"https://api.github.com/repos/beav/puppet-foreman/releases{/id}","deployments_url":"https://api.github.com/repos/beav/puppet-foreman/deployments","created_at":"2016-04-27T15:28:41Z","updated_at":"2016-04-27T15:28:43Z","pushed_at":"2016-04-27T15:29:06Z","git_url":"git://github.com/beav/puppet-foreman.git","ssh_url":"git@github.com:beav/puppet-foreman.git","clone_url":"https://github.com/beav/puppet-foreman.git","svn_url":"https://github.com/beav/puppet-foreman","homepage":"","size":1058,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"theforeman:master","ref":"master","sha":"ac81595ee5c691d8b463d4d37efadd1759626259","user":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":3449583,"name":"puppet-foreman","full_name":"theforeman/puppet-foreman","owner":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theforeman/puppet-foreman","description":"Puppet module for Foreman","fork":false,"url":"https://api.github.com/repos/theforeman/puppet-foreman","forks_url":"https://api.github.com/repos/theforeman/puppet-foreman/forks","keys_url":"https://api.github.com/repos/theforeman/puppet-foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/puppet-foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/puppet-foreman/teams","hooks_url":"https://api.github.com/repos/theforeman/puppet-foreman/hooks","issue_events_url":"https://api.github.com/repos/theforeman/puppet-foreman/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/puppet-foreman/events","assignees_url":"https://api.github.com/repos/theforeman/puppet-foreman/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/puppet-foreman/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/puppet-foreman/tags","blobs_url":"https://api.github.com/repos/theforeman/puppet-foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/puppet-foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/puppet-foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/puppet-foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/puppet-foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/puppet-foreman/languages","stargazers_url":"https://api.github.com/repos/theforeman/puppet-foreman/stargazers","contributors_url":"https://api.github.com/repos/theforeman/puppet-foreman/contributors","subscribers_url":"https://api.github.com/repos/theforeman/puppet-foreman/subscribers","subscription_url":"https://api.github.com/repos/theforeman/puppet-foreman/subscription","commits_url":"https://api.github.com/repos/theforeman/puppet-foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/puppet-foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/puppet-foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/puppet-foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/puppet-foreman/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/puppet-foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/puppet-foreman/merges","archive_url":"https://api.github.com/repos/theforeman/puppet-foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/puppet-foreman/downloads","issues_url":"https://api.github.com/repos/theforeman/puppet-foreman/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/puppet-foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/puppet-foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/puppet-foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/puppet-foreman/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/puppet-foreman/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/puppet-foreman/deployments","created_at":"2012-02-15T13:19:01Z","updated_at":"2016-01-30T14:19:55Z","pushed_at":"2016-04-22T19:52:13Z","git_url":"git://github.com/theforeman/puppet-foreman.git","ssh_url":"git@github.com:theforeman/puppet-foreman.git","clone_url":"https://github.com/theforeman/puppet-foreman.git","svn_url":"https://github.com/theforeman/puppet-foreman","homepage":"","size":1058,"stargazers_count":68,"watchers_count":68,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":162,"mirror_url":null,"open_issues_count":11,"forks":162,"open_issues":11,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/puppet-foreman/pulls/436"},"html":{"href":"https://github.com/theforeman/puppet-foreman/pull/436"},"issue":{"href":"https://api.github.com/repos/theforeman/puppet-foreman/issues/436"},"comments":{"href":"https://api.github.com/repos/theforeman/puppet-foreman/issues/436/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/puppet-foreman/pulls/436/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/puppet-foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/puppet-foreman/pulls/436/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/puppet-foreman/statuses/ddb7b308acfe14d943a2d3fd2efaa3bea1f90545"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":1}}