{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/rainforestapp/mitm/pulls/6","id":49337175,"html_url":"https://github.com/rainforestapp/mitm/pull/6","diff_url":"https://github.com/rainforestapp/mitm/pull/6.diff","patch_url":"https://github.com/rainforestapp/mitm/pull/6.patch","issue_url":"https://api.github.com/repos/rainforestapp/mitm/issues/6","number":6,"state":"open","locked":false,"title":"Forward WebSocket requests","user":{"login":"shosti","id":734316,"avatar_url":"https://avatars.githubusercontent.com/u/734316?v=3","gravatar_id":"","url":"https://api.github.com/users/shosti","html_url":"https://github.com/shosti","followers_url":"https://api.github.com/users/shosti/followers","following_url":"https://api.github.com/users/shosti/following{/other_user}","gists_url":"https://api.github.com/users/shosti/gists{/gist_id}","starred_url":"https://api.github.com/users/shosti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shosti/subscriptions","organizations_url":"https://api.github.com/users/shosti/orgs","repos_url":"https://api.github.com/users/shosti/repos","events_url":"https://api.github.com/users/shosti/events{/privacy}","received_events_url":"https://api.github.com/users/shosti/received_events","type":"User","site_admin":false},"body":"This allows mitm to properly handle WebSocket requests, which previously\nled to a wide variety of errors. WebSocket requests just skip most of the\nproxy machinery and directly forward the connection.\n\nRelates to https://github.com/rainforestapp/yankee/issues/40.\n\n@rainforestapp/core @ukd1","created_at":"2015-10-31T00:47:20Z","updated_at":"2015-10-31T00:47:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rainforestapp/mitm/pulls/6/commits","review_comments_url":"https://api.github.com/repos/rainforestapp/mitm/pulls/6/comments","review_comment_url":"https://api.github.com/repos/rainforestapp/mitm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rainforestapp/mitm/issues/6/comments","statuses_url":"https://api.github.com/repos/rainforestapp/mitm/statuses/24a0309f0a6399f97882294078b57ef6fdd668b2","head":{"label":"rainforestapp:websockets","ref":"websockets","sha":"24a0309f0a6399f97882294078b57ef6fdd668b2","user":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars.githubusercontent.com/u/1892571?v=3","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"repo":{"id":34927594,"name":"mitm","full_name":"rainforestapp/mitm","owner":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars.githubusercontent.com/u/1892571?v=3","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rainforestapp/mitm","description":"","fork":true,"url":"https://api.github.com/repos/rainforestapp/mitm","forks_url":"https://api.github.com/repos/rainforestapp/mitm/forks","keys_url":"https://api.github.com/repos/rainforestapp/mitm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rainforestapp/mitm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rainforestapp/mitm/teams","hooks_url":"https://api.github.com/repos/rainforestapp/mitm/hooks","issue_events_url":"https://api.github.com/repos/rainforestapp/mitm/issues/events{/number}","events_url":"https://api.github.com/repos/rainforestapp/mitm/events","assignees_url":"https://api.github.com/repos/rainforestapp/mitm/assignees{/user}","branches_url":"https://api.github.com/repos/rainforestapp/mitm/branches{/branch}","tags_url":"https://api.github.com/repos/rainforestapp/mitm/tags","blobs_url":"https://api.github.com/repos/rainforestapp/mitm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rainforestapp/mitm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rainforestapp/mitm/git/refs{/sha}","trees_url":"https://api.github.com/repos/rainforestapp/mitm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rainforestapp/mitm/statuses/{sha}","languages_url":"https://api.github.com/repos/rainforestapp/mitm/languages","stargazers_url":"https://api.github.com/repos/rainforestapp/mitm/stargazers","contributors_url":"https://api.github.com/repos/rainforestapp/mitm/contributors","subscribers_url":"https://api.github.com/repos/rainforestapp/mitm/subscribers","subscription_url":"https://api.github.com/repos/rainforestapp/mitm/subscription","commits_url":"https://api.github.com/repos/rainforestapp/mitm/commits{/sha}","git_commits_url":"https://api.github.com/repos/rainforestapp/mitm/git/commits{/sha}","comments_url":"https://api.github.com/repos/rainforestapp/mitm/comments{/number}","issue_comment_url":"https://api.github.com/repos/rainforestapp/mitm/issues/comments{/number}","contents_url":"https://api.github.com/repos/rainforestapp/mitm/contents/{+path}","compare_url":"https://api.github.com/repos/rainforestapp/mitm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rainforestapp/mitm/merges","archive_url":"https://api.github.com/repos/rainforestapp/mitm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rainforestapp/mitm/downloads","issues_url":"https://api.github.com/repos/rainforestapp/mitm/issues{/number}","pulls_url":"https://api.github.com/repos/rainforestapp/mitm/pulls{/number}","milestones_url":"https://api.github.com/repos/rainforestapp/mitm/milestones{/number}","notifications_url":"https://api.github.com/repos/rainforestapp/mitm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rainforestapp/mitm/labels{/name}","releases_url":"https://api.github.com/repos/rainforestapp/mitm/releases{/id}","created_at":"2015-05-01T22:46:36Z","updated_at":"2015-05-01T23:49:48Z","pushed_at":"2015-10-31T00:46:33Z","git_url":"git://github.com/rainforestapp/mitm.git","ssh_url":"git@github.com:rainforestapp/mitm.git","clone_url":"https://github.com/rainforestapp/mitm.git","svn_url":"https://github.com/rainforestapp/mitm","homepage":null,"size":170,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"rainforestapp:master","ref":"master","sha":"d304caf59e1aad30ca035d9b34df6da53718f466","user":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars.githubusercontent.com/u/1892571?v=3","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"repo":{"id":34927594,"name":"mitm","full_name":"rainforestapp/mitm","owner":{"login":"rainforestapp","id":1892571,"avatar_url":"https://avatars.githubusercontent.com/u/1892571?v=3","gravatar_id":"","url":"https://api.github.com/users/rainforestapp","html_url":"https://github.com/rainforestapp","followers_url":"https://api.github.com/users/rainforestapp/followers","following_url":"https://api.github.com/users/rainforestapp/following{/other_user}","gists_url":"https://api.github.com/users/rainforestapp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainforestapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainforestapp/subscriptions","organizations_url":"https://api.github.com/users/rainforestapp/orgs","repos_url":"https://api.github.com/users/rainforestapp/repos","events_url":"https://api.github.com/users/rainforestapp/events{/privacy}","received_events_url":"https://api.github.com/users/rainforestapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rainforestapp/mitm","description":"","fork":true,"url":"https://api.github.com/repos/rainforestapp/mitm","forks_url":"https://api.github.com/repos/rainforestapp/mitm/forks","keys_url":"https://api.github.com/repos/rainforestapp/mitm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rainforestapp/mitm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rainforestapp/mitm/teams","hooks_url":"https://api.github.com/repos/rainforestapp/mitm/hooks","issue_events_url":"https://api.github.com/repos/rainforestapp/mitm/issues/events{/number}","events_url":"https://api.github.com/repos/rainforestapp/mitm/events","assignees_url":"https://api.github.com/repos/rainforestapp/mitm/assignees{/user}","branches_url":"https://api.github.com/repos/rainforestapp/mitm/branches{/branch}","tags_url":"https://api.github.com/repos/rainforestapp/mitm/tags","blobs_url":"https://api.github.com/repos/rainforestapp/mitm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rainforestapp/mitm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rainforestapp/mitm/git/refs{/sha}","trees_url":"https://api.github.com/repos/rainforestapp/mitm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rainforestapp/mitm/statuses/{sha}","languages_url":"https://api.github.com/repos/rainforestapp/mitm/languages","stargazers_url":"https://api.github.com/repos/rainforestapp/mitm/stargazers","contributors_url":"https://api.github.com/repos/rainforestapp/mitm/contributors","subscribers_url":"https://api.github.com/repos/rainforestapp/mitm/subscribers","subscription_url":"https://api.github.com/repos/rainforestapp/mitm/subscription","commits_url":"https://api.github.com/repos/rainforestapp/mitm/commits{/sha}","git_commits_url":"https://api.github.com/repos/rainforestapp/mitm/git/commits{/sha}","comments_url":"https://api.github.com/repos/rainforestapp/mitm/comments{/number}","issue_comment_url":"https://api.github.com/repos/rainforestapp/mitm/issues/comments{/number}","contents_url":"https://api.github.com/repos/rainforestapp/mitm/contents/{+path}","compare_url":"https://api.github.com/repos/rainforestapp/mitm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rainforestapp/mitm/merges","archive_url":"https://api.github.com/repos/rainforestapp/mitm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rainforestapp/mitm/downloads","issues_url":"https://api.github.com/repos/rainforestapp/mitm/issues{/number}","pulls_url":"https://api.github.com/repos/rainforestapp/mitm/pulls{/number}","milestones_url":"https://api.github.com/repos/rainforestapp/mitm/milestones{/number}","notifications_url":"https://api.github.com/repos/rainforestapp/mitm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rainforestapp/mitm/labels{/name}","releases_url":"https://api.github.com/repos/rainforestapp/mitm/releases{/id}","created_at":"2015-05-01T22:46:36Z","updated_at":"2015-05-01T23:49:48Z","pushed_at":"2015-10-31T00:46:33Z","git_url":"git://github.com/rainforestapp/mitm.git","ssh_url":"git@github.com:rainforestapp/mitm.git","clone_url":"https://github.com/rainforestapp/mitm.git","svn_url":"https://github.com/rainforestapp/mitm","homepage":null,"size":170,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rainforestapp/mitm/pulls/6"},"html":{"href":"https://github.com/rainforestapp/mitm/pull/6"},"issue":{"href":"https://api.github.com/repos/rainforestapp/mitm/issues/6"},"comments":{"href":"https://api.github.com/repos/rainforestapp/mitm/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/rainforestapp/mitm/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/rainforestapp/mitm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rainforestapp/mitm/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/rainforestapp/mitm/statuses/24a0309f0a6399f97882294078b57ef6fdd668b2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":2606,"deletions":0,"changed_files":13}}