{"action":"created","comment":{"url":"https://api.github.com/repos/github/elastomer-client/pulls/comments/89236354","pull_request_review_id":9783856,"id":89236354,"diff_hunk":"@@ -162,6 +162,9 @@ def request( method, path, params )\n       body = extract_body params\n       path = expand_path path, params\n \n+      # Prevent excon from changing the encoding (see https://github.com/github/elastomer-client/issues/138)\n+      body.freeze","path":"lib/elastomer/client.rb","position":null,"original_position":5,"commit_id":"7474cf3914cea8c56ac29199f187aa77d3efb27c","original_commit_id":"fba384e089608a60ff51ec78c4bfe82b14efc406","user":{"login":"chrismwendt","id":1387653,"avatar_url":"https://avatars.githubusercontent.com/u/1387653?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismwendt","html_url":"https://github.com/chrismwendt","followers_url":"https://api.github.com/users/chrismwendt/followers","following_url":"https://api.github.com/users/chrismwendt/following{/other_user}","gists_url":"https://api.github.com/users/chrismwendt/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismwendt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismwendt/subscriptions","organizations_url":"https://api.github.com/users/chrismwendt/orgs","repos_url":"https://api.github.com/users/chrismwendt/repos","events_url":"https://api.github.com/users/chrismwendt/events{/privacy}","received_events_url":"https://api.github.com/users/chrismwendt/received_events","type":"User","site_admin":true},"body":"Good catch, moved to `extract_body` in 7474cf3","created_at":"2016-11-22T23:57:00Z","updated_at":"2016-11-22T23:57:00Z","html_url":"https://github.com/github/elastomer-client/pull/139#discussion_r89236354","pull_request_url":"https://api.github.com/repos/github/elastomer-client/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/github/elastomer-client/pulls/comments/89236354"},"html":{"href":"https://github.com/github/elastomer-client/pull/139#discussion_r89236354"},"pull_request":{"href":"https://api.github.com/repos/github/elastomer-client/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/github/elastomer-client/pulls/139","id":94918468,"html_url":"https://github.com/github/elastomer-client/pull/139","diff_url":"https://github.com/github/elastomer-client/pull/139.diff","patch_url":"https://github.com/github/elastomer-client/pull/139.patch","issue_url":"https://api.github.com/repos/github/elastomer-client/issues/139","number":139,"state":"open","locked":false,"title":"Freeze the body to prevent excon from changing its encoding","user":{"login":"chrismwendt","id":1387653,"avatar_url":"https://avatars.githubusercontent.com/u/1387653?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismwendt","html_url":"https://github.com/chrismwendt","followers_url":"https://api.github.com/users/chrismwendt/followers","following_url":"https://api.github.com/users/chrismwendt/following{/other_user}","gists_url":"https://api.github.com/users/chrismwendt/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismwendt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismwendt/subscriptions","organizations_url":"https://api.github.com/users/chrismwendt/orgs","repos_url":"https://api.github.com/users/chrismwendt/repos","events_url":"https://api.github.com/users/chrismwendt/events{/privacy}","received_events_url":"https://api.github.com/users/chrismwendt/received_events","type":"User","site_admin":true},"body":"This prevents excon from [changing the encoding of the body](https://github.com/excon/excon/blob/v0.32.1/lib/excon/connection.rb#L183), causing downstream encoding compatibility errors.\r\n\r\nFixes #138\r\n\r\n/cc @github/search","created_at":"2016-11-22T23:19:51Z","updated_at":"2016-11-22T23:57:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"619709f30f2f48a93e83dc3f801c1ba9db6b6057","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/github/elastomer-client/pulls/139/commits","review_comments_url":"https://api.github.com/repos/github/elastomer-client/pulls/139/comments","review_comment_url":"https://api.github.com/repos/github/elastomer-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/github/elastomer-client/issues/139/comments","statuses_url":"https://api.github.com/repos/github/elastomer-client/statuses/7474cf3914cea8c56ac29199f187aa77d3efb27c","head":{"label":"github:freeze-body","ref":"freeze-body","sha":"7474cf3914cea8c56ac29199f187aa77d3efb27c","user":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"repo":{"id":6180360,"name":"elastomer-client","full_name":"github/elastomer-client","owner":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github/elastomer-client","description":"A library for interacting with Elasticsearch","fork":false,"url":"https://api.github.com/repos/github/elastomer-client","forks_url":"https://api.github.com/repos/github/elastomer-client/forks","keys_url":"https://api.github.com/repos/github/elastomer-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github/elastomer-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github/elastomer-client/teams","hooks_url":"https://api.github.com/repos/github/elastomer-client/hooks","issue_events_url":"https://api.github.com/repos/github/elastomer-client/issues/events{/number}","events_url":"https://api.github.com/repos/github/elastomer-client/events","assignees_url":"https://api.github.com/repos/github/elastomer-client/assignees{/user}","branches_url":"https://api.github.com/repos/github/elastomer-client/branches{/branch}","tags_url":"https://api.github.com/repos/github/elastomer-client/tags","blobs_url":"https://api.github.com/repos/github/elastomer-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github/elastomer-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github/elastomer-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/github/elastomer-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github/elastomer-client/statuses/{sha}","languages_url":"https://api.github.com/repos/github/elastomer-client/languages","stargazers_url":"https://api.github.com/repos/github/elastomer-client/stargazers","contributors_url":"https://api.github.com/repos/github/elastomer-client/contributors","subscribers_url":"https://api.github.com/repos/github/elastomer-client/subscribers","subscription_url":"https://api.github.com/repos/github/elastomer-client/subscription","commits_url":"https://api.github.com/repos/github/elastomer-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/github/elastomer-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/github/elastomer-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/github/elastomer-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/github/elastomer-client/contents/{+path}","compare_url":"https://api.github.com/repos/github/elastomer-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github/elastomer-client/merges","archive_url":"https://api.github.com/repos/github/elastomer-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github/elastomer-client/downloads","issues_url":"https://api.github.com/repos/github/elastomer-client/issues{/number}","pulls_url":"https://api.github.com/repos/github/elastomer-client/pulls{/number}","milestones_url":"https://api.github.com/repos/github/elastomer-client/milestones{/number}","notifications_url":"https://api.github.com/repos/github/elastomer-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github/elastomer-client/labels{/name}","releases_url":"https://api.github.com/repos/github/elastomer-client/releases{/id}","deployments_url":"https://api.github.com/repos/github/elastomer-client/deployments","created_at":"2012-10-11T20:33:17Z","updated_at":"2016-11-10T03:13:28Z","pushed_at":"2016-11-22T23:56:25Z","git_url":"git://github.com/github/elastomer-client.git","ssh_url":"git@github.com:github/elastomer-client.git","clone_url":"https://github.com/github/elastomer-client.git","svn_url":"https://github.com/github/elastomer-client","homepage":"","size":976,"stargazers_count":89,"watchers_count":89,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":15,"forks":10,"open_issues":15,"watchers":89,"default_branch":"master"}},"base":{"label":"github:master","ref":"master","sha":"51d65247c9ba61712f02b7ca4d08967f0bc7215b","user":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"repo":{"id":6180360,"name":"elastomer-client","full_name":"github/elastomer-client","owner":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github/elastomer-client","description":"A library for interacting with Elasticsearch","fork":false,"url":"https://api.github.com/repos/github/elastomer-client","forks_url":"https://api.github.com/repos/github/elastomer-client/forks","keys_url":"https://api.github.com/repos/github/elastomer-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github/elastomer-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github/elastomer-client/teams","hooks_url":"https://api.github.com/repos/github/elastomer-client/hooks","issue_events_url":"https://api.github.com/repos/github/elastomer-client/issues/events{/number}","events_url":"https://api.github.com/repos/github/elastomer-client/events","assignees_url":"https://api.github.com/repos/github/elastomer-client/assignees{/user}","branches_url":"https://api.github.com/repos/github/elastomer-client/branches{/branch}","tags_url":"https://api.github.com/repos/github/elastomer-client/tags","blobs_url":"https://api.github.com/repos/github/elastomer-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github/elastomer-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github/elastomer-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/github/elastomer-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github/elastomer-client/statuses/{sha}","languages_url":"https://api.github.com/repos/github/elastomer-client/languages","stargazers_url":"https://api.github.com/repos/github/elastomer-client/stargazers","contributors_url":"https://api.github.com/repos/github/elastomer-client/contributors","subscribers_url":"https://api.github.com/repos/github/elastomer-client/subscribers","subscription_url":"https://api.github.com/repos/github/elastomer-client/subscription","commits_url":"https://api.github.com/repos/github/elastomer-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/github/elastomer-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/github/elastomer-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/github/elastomer-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/github/elastomer-client/contents/{+path}","compare_url":"https://api.github.com/repos/github/elastomer-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github/elastomer-client/merges","archive_url":"https://api.github.com/repos/github/elastomer-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github/elastomer-client/downloads","issues_url":"https://api.github.com/repos/github/elastomer-client/issues{/number}","pulls_url":"https://api.github.com/repos/github/elastomer-client/pulls{/number}","milestones_url":"https://api.github.com/repos/github/elastomer-client/milestones{/number}","notifications_url":"https://api.github.com/repos/github/elastomer-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github/elastomer-client/labels{/name}","releases_url":"https://api.github.com/repos/github/elastomer-client/releases{/id}","deployments_url":"https://api.github.com/repos/github/elastomer-client/deployments","created_at":"2012-10-11T20:33:17Z","updated_at":"2016-11-10T03:13:28Z","pushed_at":"2016-11-22T23:56:25Z","git_url":"git://github.com/github/elastomer-client.git","ssh_url":"git@github.com:github/elastomer-client.git","clone_url":"https://github.com/github/elastomer-client.git","svn_url":"https://github.com/github/elastomer-client","homepage":"","size":976,"stargazers_count":89,"watchers_count":89,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":15,"forks":10,"open_issues":15,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/github/elastomer-client/pulls/139"},"html":{"href":"https://github.com/github/elastomer-client/pull/139"},"issue":{"href":"https://api.github.com/repos/github/elastomer-client/issues/139"},"comments":{"href":"https://api.github.com/repos/github/elastomer-client/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/github/elastomer-client/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/github/elastomer-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/github/elastomer-client/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/github/elastomer-client/statuses/7474cf3914cea8c56ac29199f187aa77d3efb27c"}}}}
{"actor":{"display_login":"chrismwendt"}}