{"action":"closed","number":472,"pull_request":{"url":"https://api.github.com/repos/typhoeus/typhoeus/pulls/472","id":44314724,"html_url":"https://github.com/typhoeus/typhoeus/pull/472","diff_url":"https://github.com/typhoeus/typhoeus/pull/472.diff","patch_url":"https://github.com/typhoeus/typhoeus/pull/472.patch","issue_url":"https://api.github.com/repos/typhoeus/typhoeus/issues/472","number":472,"state":"closed","locked":false,"title":"Adds support for a default user agent.","user":{"login":"EddyLuten","id":1082806,"avatar_url":"https://avatars.githubusercontent.com/u/1082806?v=3","gravatar_id":"","url":"https://api.github.com/users/EddyLuten","html_url":"https://github.com/EddyLuten","followers_url":"https://api.github.com/users/EddyLuten/followers","following_url":"https://api.github.com/users/EddyLuten/following{/other_user}","gists_url":"https://api.github.com/users/EddyLuten/gists{/gist_id}","starred_url":"https://api.github.com/users/EddyLuten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EddyLuten/subscriptions","organizations_url":"https://api.github.com/users/EddyLuten/orgs","repos_url":"https://api.github.com/users/EddyLuten/repos","events_url":"https://api.github.com/users/EddyLuten/events{/privacy}","received_events_url":"https://api.github.com/users/EddyLuten/received_events","type":"User","site_admin":false},"body":"Some rationale: I added this functionality since I have several projects which always seem to override the user agent for each request. We require the User-Agent header for each request to be overridden since our internal firewall only whitelists certain User-Agents; the Typhoeus user agent will not likely be added any time soon. Adding this once to the application initialization code seems cleaner than overriding it for a request each time.\r\n\r\nIf it's unwanted, please close the PR. Tests were added for the new functionality, which pass:\r\n\r\n```\r\n408 examples, 0 failures, 1 pending\r\n```","created_at":"2015-09-07T01:55:48Z","updated_at":"2015-09-07T05:04:53Z","closed_at":"2015-09-07T05:04:53Z","merged_at":"2015-09-07T05:04:53Z","merge_commit_sha":"ca35c221799959f3c39d23a1deca26f0e7b05354","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/typhoeus/typhoeus/pulls/472/commits","review_comments_url":"https://api.github.com/repos/typhoeus/typhoeus/pulls/472/comments","review_comment_url":"https://api.github.com/repos/typhoeus/typhoeus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/typhoeus/typhoeus/issues/472/comments","statuses_url":"https://api.github.com/repos/typhoeus/typhoeus/statuses/73a573ccd968cfcac053fb78b41c1c0208727af4","head":{"label":"EddyLuten:master","ref":"master","sha":"73a573ccd968cfcac053fb78b41c1c0208727af4","user":{"login":"EddyLuten","id":1082806,"avatar_url":"https://avatars.githubusercontent.com/u/1082806?v=3","gravatar_id":"","url":"https://api.github.com/users/EddyLuten","html_url":"https://github.com/EddyLuten","followers_url":"https://api.github.com/users/EddyLuten/followers","following_url":"https://api.github.com/users/EddyLuten/following{/other_user}","gists_url":"https://api.github.com/users/EddyLuten/gists{/gist_id}","starred_url":"https://api.github.com/users/EddyLuten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EddyLuten/subscriptions","organizations_url":"https://api.github.com/users/EddyLuten/orgs","repos_url":"https://api.github.com/users/EddyLuten/repos","events_url":"https://api.github.com/users/EddyLuten/events{/privacy}","received_events_url":"https://api.github.com/users/EddyLuten/received_events","type":"User","site_admin":false},"repo":{"id":42025897,"name":"typhoeus","full_name":"EddyLuten/typhoeus","owner":{"login":"EddyLuten","id":1082806,"avatar_url":"https://avatars.githubusercontent.com/u/1082806?v=3","gravatar_id":"","url":"https://api.github.com/users/EddyLuten","html_url":"https://github.com/EddyLuten","followers_url":"https://api.github.com/users/EddyLuten/followers","following_url":"https://api.github.com/users/EddyLuten/following{/other_user}","gists_url":"https://api.github.com/users/EddyLuten/gists{/gist_id}","starred_url":"https://api.github.com/users/EddyLuten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EddyLuten/subscriptions","organizations_url":"https://api.github.com/users/EddyLuten/orgs","repos_url":"https://api.github.com/users/EddyLuten/repos","events_url":"https://api.github.com/users/EddyLuten/events{/privacy}","received_events_url":"https://api.github.com/users/EddyLuten/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EddyLuten/typhoeus","description":" Typhoeus wraps libcurl in order to make fast and reliable requests.","fork":true,"url":"https://api.github.com/repos/EddyLuten/typhoeus","forks_url":"https://api.github.com/repos/EddyLuten/typhoeus/forks","keys_url":"https://api.github.com/repos/EddyLuten/typhoeus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EddyLuten/typhoeus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EddyLuten/typhoeus/teams","hooks_url":"https://api.github.com/repos/EddyLuten/typhoeus/hooks","issue_events_url":"https://api.github.com/repos/EddyLuten/typhoeus/issues/events{/number}","events_url":"https://api.github.com/repos/EddyLuten/typhoeus/events","assignees_url":"https://api.github.com/repos/EddyLuten/typhoeus/assignees{/user}","branches_url":"https://api.github.com/repos/EddyLuten/typhoeus/branches{/branch}","tags_url":"https://api.github.com/repos/EddyLuten/typhoeus/tags","blobs_url":"https://api.github.com/repos/EddyLuten/typhoeus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EddyLuten/typhoeus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EddyLuten/typhoeus/git/refs{/sha}","trees_url":"https://api.github.com/repos/EddyLuten/typhoeus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EddyLuten/typhoeus/statuses/{sha}","languages_url":"https://api.github.com/repos/EddyLuten/typhoeus/languages","stargazers_url":"https://api.github.com/repos/EddyLuten/typhoeus/stargazers","contributors_url":"https://api.github.com/repos/EddyLuten/typhoeus/contributors","subscribers_url":"https://api.github.com/repos/EddyLuten/typhoeus/subscribers","subscription_url":"https://api.github.com/repos/EddyLuten/typhoeus/subscription","commits_url":"https://api.github.com/repos/EddyLuten/typhoeus/commits{/sha}","git_commits_url":"https://api.github.com/repos/EddyLuten/typhoeus/git/commits{/sha}","comments_url":"https://api.github.com/repos/EddyLuten/typhoeus/comments{/number}","issue_comment_url":"https://api.github.com/repos/EddyLuten/typhoeus/issues/comments{/number}","contents_url":"https://api.github.com/repos/EddyLuten/typhoeus/contents/{+path}","compare_url":"https://api.github.com/repos/EddyLuten/typhoeus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EddyLuten/typhoeus/merges","archive_url":"https://api.github.com/repos/EddyLuten/typhoeus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EddyLuten/typhoeus/downloads","issues_url":"https://api.github.com/repos/EddyLuten/typhoeus/issues{/number}","pulls_url":"https://api.github.com/repos/EddyLuten/typhoeus/pulls{/number}","milestones_url":"https://api.github.com/repos/EddyLuten/typhoeus/milestones{/number}","notifications_url":"https://api.github.com/repos/EddyLuten/typhoeus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EddyLuten/typhoeus/labels{/name}","releases_url":"https://api.github.com/repos/EddyLuten/typhoeus/releases{/id}","created_at":"2015-09-07T01:52:20Z","updated_at":"2015-09-07T01:52:21Z","pushed_at":"2015-09-07T01:52:32Z","git_url":"git://github.com/EddyLuten/typhoeus.git","ssh_url":"git@github.com:EddyLuten/typhoeus.git","clone_url":"https://github.com/EddyLuten/typhoeus.git","svn_url":"https://github.com/EddyLuten/typhoeus","homepage":"http://rubydoc.info/github/typhoeus/typhoeus","size":3036,"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":"typhoeus:master","ref":"master","sha":"bc79c7166ce449002f27fa9388799928cfbce3f0","user":{"login":"typhoeus","id":1745513,"avatar_url":"https://avatars.githubusercontent.com/u/1745513?v=3","gravatar_id":"","url":"https://api.github.com/users/typhoeus","html_url":"https://github.com/typhoeus","followers_url":"https://api.github.com/users/typhoeus/followers","following_url":"https://api.github.com/users/typhoeus/following{/other_user}","gists_url":"https://api.github.com/users/typhoeus/gists{/gist_id}","starred_url":"https://api.github.com/users/typhoeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typhoeus/subscriptions","organizations_url":"https://api.github.com/users/typhoeus/orgs","repos_url":"https://api.github.com/users/typhoeus/repos","events_url":"https://api.github.com/users/typhoeus/events{/privacy}","received_events_url":"https://api.github.com/users/typhoeus/received_events","type":"Organization","site_admin":false},"repo":{"id":132108,"name":"typhoeus","full_name":"typhoeus/typhoeus","owner":{"login":"typhoeus","id":1745513,"avatar_url":"https://avatars.githubusercontent.com/u/1745513?v=3","gravatar_id":"","url":"https://api.github.com/users/typhoeus","html_url":"https://github.com/typhoeus","followers_url":"https://api.github.com/users/typhoeus/followers","following_url":"https://api.github.com/users/typhoeus/following{/other_user}","gists_url":"https://api.github.com/users/typhoeus/gists{/gist_id}","starred_url":"https://api.github.com/users/typhoeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typhoeus/subscriptions","organizations_url":"https://api.github.com/users/typhoeus/orgs","repos_url":"https://api.github.com/users/typhoeus/repos","events_url":"https://api.github.com/users/typhoeus/events{/privacy}","received_events_url":"https://api.github.com/users/typhoeus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/typhoeus/typhoeus","description":" Typhoeus wraps libcurl in order to make fast and reliable requests.","fork":false,"url":"https://api.github.com/repos/typhoeus/typhoeus","forks_url":"https://api.github.com/repos/typhoeus/typhoeus/forks","keys_url":"https://api.github.com/repos/typhoeus/typhoeus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/typhoeus/typhoeus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/typhoeus/typhoeus/teams","hooks_url":"https://api.github.com/repos/typhoeus/typhoeus/hooks","issue_events_url":"https://api.github.com/repos/typhoeus/typhoeus/issues/events{/number}","events_url":"https://api.github.com/repos/typhoeus/typhoeus/events","assignees_url":"https://api.github.com/repos/typhoeus/typhoeus/assignees{/user}","branches_url":"https://api.github.com/repos/typhoeus/typhoeus/branches{/branch}","tags_url":"https://api.github.com/repos/typhoeus/typhoeus/tags","blobs_url":"https://api.github.com/repos/typhoeus/typhoeus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/typhoeus/typhoeus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/typhoeus/typhoeus/git/refs{/sha}","trees_url":"https://api.github.com/repos/typhoeus/typhoeus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/typhoeus/typhoeus/statuses/{sha}","languages_url":"https://api.github.com/repos/typhoeus/typhoeus/languages","stargazers_url":"https://api.github.com/repos/typhoeus/typhoeus/stargazers","contributors_url":"https://api.github.com/repos/typhoeus/typhoeus/contributors","subscribers_url":"https://api.github.com/repos/typhoeus/typhoeus/subscribers","subscription_url":"https://api.github.com/repos/typhoeus/typhoeus/subscription","commits_url":"https://api.github.com/repos/typhoeus/typhoeus/commits{/sha}","git_commits_url":"https://api.github.com/repos/typhoeus/typhoeus/git/commits{/sha}","comments_url":"https://api.github.com/repos/typhoeus/typhoeus/comments{/number}","issue_comment_url":"https://api.github.com/repos/typhoeus/typhoeus/issues/comments{/number}","contents_url":"https://api.github.com/repos/typhoeus/typhoeus/contents/{+path}","compare_url":"https://api.github.com/repos/typhoeus/typhoeus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/typhoeus/typhoeus/merges","archive_url":"https://api.github.com/repos/typhoeus/typhoeus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/typhoeus/typhoeus/downloads","issues_url":"https://api.github.com/repos/typhoeus/typhoeus/issues{/number}","pulls_url":"https://api.github.com/repos/typhoeus/typhoeus/pulls{/number}","milestones_url":"https://api.github.com/repos/typhoeus/typhoeus/milestones{/number}","notifications_url":"https://api.github.com/repos/typhoeus/typhoeus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/typhoeus/typhoeus/labels{/name}","releases_url":"https://api.github.com/repos/typhoeus/typhoeus/releases{/id}","created_at":"2009-02-18T23:14:50Z","updated_at":"2015-09-06T15:21:55Z","pushed_at":"2015-09-07T05:04:53Z","git_url":"git://github.com/typhoeus/typhoeus.git","ssh_url":"git@github.com:typhoeus/typhoeus.git","clone_url":"https://github.com/typhoeus/typhoeus.git","svn_url":"https://github.com/typhoeus/typhoeus","homepage":"http://rubydoc.info/github/typhoeus/typhoeus","size":3036,"stargazers_count":2528,"watchers_count":2528,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":285,"mirror_url":null,"open_issues_count":29,"forks":285,"open_issues":29,"watchers":2528,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/typhoeus/typhoeus/pulls/472"},"html":{"href":"https://github.com/typhoeus/typhoeus/pull/472"},"issue":{"href":"https://api.github.com/repos/typhoeus/typhoeus/issues/472"},"comments":{"href":"https://api.github.com/repos/typhoeus/typhoeus/issues/472/comments"},"review_comments":{"href":"https://api.github.com/repos/typhoeus/typhoeus/pulls/472/comments"},"review_comment":{"href":"https://api.github.com/repos/typhoeus/typhoeus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/typhoeus/typhoeus/pulls/472/commits"},"statuses":{"href":"https://api.github.com/repos/typhoeus/typhoeus/statuses/73a573ccd968cfcac053fb78b41c1c0208727af4"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"i0rek","id":38218,"avatar_url":"https://avatars.githubusercontent.com/u/38218?v=3","gravatar_id":"","url":"https://api.github.com/users/i0rek","html_url":"https://github.com/i0rek","followers_url":"https://api.github.com/users/i0rek/followers","following_url":"https://api.github.com/users/i0rek/following{/other_user}","gists_url":"https://api.github.com/users/i0rek/gists{/gist_id}","starred_url":"https://api.github.com/users/i0rek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i0rek/subscriptions","organizations_url":"https://api.github.com/users/i0rek/orgs","repos_url":"https://api.github.com/users/i0rek/repos","events_url":"https://api.github.com/users/i0rek/events{/privacy}","received_events_url":"https://api.github.com/users/i0rek/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":42,"deletions":4,"changed_files":5}}