{"action":"closed","number":962,"pull_request":{"url":"https://api.github.com/repos/ionic-team/capacitor/pulls/962","id":228921275,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4OTIxMjc1","html_url":"https://github.com/ionic-team/capacitor/pull/962","diff_url":"https://github.com/ionic-team/capacitor/pull/962.diff","patch_url":"https://github.com/ionic-team/capacitor/pull/962.patch","issue_url":"https://api.github.com/repos/ionic-team/capacitor/issues/962","number":962,"state":"closed","locked":false,"title":"Android: Intercept proxyied requests in handleProxyRequest for GET method only","user":{"login":"leshik","id":443678,"node_id":"MDQ6VXNlcjQ0MzY3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/443678?v=4","gravatar_id":"","url":"https://api.github.com/users/leshik","html_url":"https://github.com/leshik","followers_url":"https://api.github.com/users/leshik/followers","following_url":"https://api.github.com/users/leshik/following{/other_user}","gists_url":"https://api.github.com/users/leshik/gists{/gist_id}","starred_url":"https://api.github.com/users/leshik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leshik/subscriptions","organizations_url":"https://api.github.com/users/leshik/orgs","repos_url":"https://api.github.com/users/leshik/repos","events_url":"https://api.github.com/users/leshik/events{/privacy}","received_events_url":"https://api.github.com/users/leshik/received_events","type":"User","site_admin":false},"body":"Related to #951 and #955.\r\n\r\nTurned out, there is a lifelong known [issue](https://issuetracker.google.com/issues/36918490) that `POST` requests can't be intercepted with `WebViewClient.shouldInterceptRequest(WebView, WebResourceRequest)` method. In my case this resulted in all GraphQL queries became duplicated – the first one is broken, with `Content-Length: 0` and an empty body, then the second normal one comes. I didn't came up with any better solution than to execute `handleProxyRequest` for `GET` requests only.\r\n\r\n@jcesarmobile what do you think?","created_at":"2018-11-07T05:24:03Z","updated_at":"2018-11-08T11:47:23Z","closed_at":"2018-11-08T11:47:23Z","merged_at":"2018-11-08T11:47:23Z","merge_commit_sha":"486c11f33639dd7d74306b5a4c0d7c20d4c8d45a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ionic-team/capacitor/pulls/962/commits","review_comments_url":"https://api.github.com/repos/ionic-team/capacitor/pulls/962/comments","review_comment_url":"https://api.github.com/repos/ionic-team/capacitor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ionic-team/capacitor/issues/962/comments","statuses_url":"https://api.github.com/repos/ionic-team/capacitor/statuses/71649acdda3f425baf05d4c3b4230d597ee260ac","head":{"label":"leshik:android-intercept-proxy-requests-for-get-method-only","ref":"android-intercept-proxy-requests-for-get-method-only","sha":"71649acdda3f425baf05d4c3b4230d597ee260ac","user":{"login":"leshik","id":443678,"node_id":"MDQ6VXNlcjQ0MzY3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/443678?v=4","gravatar_id":"","url":"https://api.github.com/users/leshik","html_url":"https://github.com/leshik","followers_url":"https://api.github.com/users/leshik/followers","following_url":"https://api.github.com/users/leshik/following{/other_user}","gists_url":"https://api.github.com/users/leshik/gists{/gist_id}","starred_url":"https://api.github.com/users/leshik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leshik/subscriptions","organizations_url":"https://api.github.com/users/leshik/orgs","repos_url":"https://api.github.com/users/leshik/repos","events_url":"https://api.github.com/users/leshik/events{/privacy}","received_events_url":"https://api.github.com/users/leshik/received_events","type":"User","site_admin":false},"repo":{"id":155494732,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU0OTQ3MzI=","name":"capacitor","full_name":"leshik/capacitor","private":false,"owner":{"login":"leshik","id":443678,"node_id":"MDQ6VXNlcjQ0MzY3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/443678?v=4","gravatar_id":"","url":"https://api.github.com/users/leshik","html_url":"https://github.com/leshik","followers_url":"https://api.github.com/users/leshik/followers","following_url":"https://api.github.com/users/leshik/following{/other_user}","gists_url":"https://api.github.com/users/leshik/gists{/gist_id}","starred_url":"https://api.github.com/users/leshik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leshik/subscriptions","organizations_url":"https://api.github.com/users/leshik/orgs","repos_url":"https://api.github.com/users/leshik/repos","events_url":"https://api.github.com/users/leshik/events{/privacy}","received_events_url":"https://api.github.com/users/leshik/received_events","type":"User","site_admin":false},"html_url":"https://github.com/leshik/capacitor","description":"Build cross-platform Native Progressive Web Apps for iOS, Android, and the web ⚡️","fork":true,"url":"https://api.github.com/repos/leshik/capacitor","forks_url":"https://api.github.com/repos/leshik/capacitor/forks","keys_url":"https://api.github.com/repos/leshik/capacitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leshik/capacitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leshik/capacitor/teams","hooks_url":"https://api.github.com/repos/leshik/capacitor/hooks","issue_events_url":"https://api.github.com/repos/leshik/capacitor/issues/events{/number}","events_url":"https://api.github.com/repos/leshik/capacitor/events","assignees_url":"https://api.github.com/repos/leshik/capacitor/assignees{/user}","branches_url":"https://api.github.com/repos/leshik/capacitor/branches{/branch}","tags_url":"https://api.github.com/repos/leshik/capacitor/tags","blobs_url":"https://api.github.com/repos/leshik/capacitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leshik/capacitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leshik/capacitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/leshik/capacitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leshik/capacitor/statuses/{sha}","languages_url":"https://api.github.com/repos/leshik/capacitor/languages","stargazers_url":"https://api.github.com/repos/leshik/capacitor/stargazers","contributors_url":"https://api.github.com/repos/leshik/capacitor/contributors","subscribers_url":"https://api.github.com/repos/leshik/capacitor/subscribers","subscription_url":"https://api.github.com/repos/leshik/capacitor/subscription","commits_url":"https://api.github.com/repos/leshik/capacitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/leshik/capacitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/leshik/capacitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/leshik/capacitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/leshik/capacitor/contents/{+path}","compare_url":"https://api.github.com/repos/leshik/capacitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leshik/capacitor/merges","archive_url":"https://api.github.com/repos/leshik/capacitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leshik/capacitor/downloads","issues_url":"https://api.github.com/repos/leshik/capacitor/issues{/number}","pulls_url":"https://api.github.com/repos/leshik/capacitor/pulls{/number}","milestones_url":"https://api.github.com/repos/leshik/capacitor/milestones{/number}","notifications_url":"https://api.github.com/repos/leshik/capacitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leshik/capacitor/labels{/name}","releases_url":"https://api.github.com/repos/leshik/capacitor/releases{/id}","deployments_url":"https://api.github.com/repos/leshik/capacitor/deployments","created_at":"2018-10-31T03:43:17Z","updated_at":"2018-11-08T07:14:32Z","pushed_at":"2018-11-08T07:14:30Z","git_url":"git://github.com/leshik/capacitor.git","ssh_url":"git@github.com:leshik/capacitor.git","clone_url":"https://github.com/leshik/capacitor.git","svn_url":"https://github.com/leshik/capacitor","homepage":"https://capacitor.ionicframework.com/","size":32847,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ionic-team:master","ref":"master","sha":"6aa43d558bc26ec3ffc4121ce28c9d97e149dcca","user":{"login":"ionic-team","id":3171503,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNzE1MDM=","avatar_url":"https://avatars0.githubusercontent.com/u/3171503?v=4","gravatar_id":"","url":"https://api.github.com/users/ionic-team","html_url":"https://github.com/ionic-team","followers_url":"https://api.github.com/users/ionic-team/followers","following_url":"https://api.github.com/users/ionic-team/following{/other_user}","gists_url":"https://api.github.com/users/ionic-team/gists{/gist_id}","starred_url":"https://api.github.com/users/ionic-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ionic-team/subscriptions","organizations_url":"https://api.github.com/users/ionic-team/orgs","repos_url":"https://api.github.com/users/ionic-team/repos","events_url":"https://api.github.com/users/ionic-team/events{/privacy}","received_events_url":"https://api.github.com/users/ionic-team/received_events","type":"Organization","site_admin":false},"repo":{"id":111241370,"node_id":"MDEwOlJlcG9zaXRvcnkxMTEyNDEzNzA=","name":"capacitor","full_name":"ionic-team/capacitor","private":false,"owner":{"login":"ionic-team","id":3171503,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNzE1MDM=","avatar_url":"https://avatars0.githubusercontent.com/u/3171503?v=4","gravatar_id":"","url":"https://api.github.com/users/ionic-team","html_url":"https://github.com/ionic-team","followers_url":"https://api.github.com/users/ionic-team/followers","following_url":"https://api.github.com/users/ionic-team/following{/other_user}","gists_url":"https://api.github.com/users/ionic-team/gists{/gist_id}","starred_url":"https://api.github.com/users/ionic-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ionic-team/subscriptions","organizations_url":"https://api.github.com/users/ionic-team/orgs","repos_url":"https://api.github.com/users/ionic-team/repos","events_url":"https://api.github.com/users/ionic-team/events{/privacy}","received_events_url":"https://api.github.com/users/ionic-team/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ionic-team/capacitor","description":"Build cross-platform Native Progressive Web Apps for iOS, Android, and the web ⚡️","fork":false,"url":"https://api.github.com/repos/ionic-team/capacitor","forks_url":"https://api.github.com/repos/ionic-team/capacitor/forks","keys_url":"https://api.github.com/repos/ionic-team/capacitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ionic-team/capacitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ionic-team/capacitor/teams","hooks_url":"https://api.github.com/repos/ionic-team/capacitor/hooks","issue_events_url":"https://api.github.com/repos/ionic-team/capacitor/issues/events{/number}","events_url":"https://api.github.com/repos/ionic-team/capacitor/events","assignees_url":"https://api.github.com/repos/ionic-team/capacitor/assignees{/user}","branches_url":"https://api.github.com/repos/ionic-team/capacitor/branches{/branch}","tags_url":"https://api.github.com/repos/ionic-team/capacitor/tags","blobs_url":"https://api.github.com/repos/ionic-team/capacitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ionic-team/capacitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ionic-team/capacitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/ionic-team/capacitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ionic-team/capacitor/statuses/{sha}","languages_url":"https://api.github.com/repos/ionic-team/capacitor/languages","stargazers_url":"https://api.github.com/repos/ionic-team/capacitor/stargazers","contributors_url":"https://api.github.com/repos/ionic-team/capacitor/contributors","subscribers_url":"https://api.github.com/repos/ionic-team/capacitor/subscribers","subscription_url":"https://api.github.com/repos/ionic-team/capacitor/subscription","commits_url":"https://api.github.com/repos/ionic-team/capacitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/ionic-team/capacitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/ionic-team/capacitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/ionic-team/capacitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/ionic-team/capacitor/contents/{+path}","compare_url":"https://api.github.com/repos/ionic-team/capacitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ionic-team/capacitor/merges","archive_url":"https://api.github.com/repos/ionic-team/capacitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ionic-team/capacitor/downloads","issues_url":"https://api.github.com/repos/ionic-team/capacitor/issues{/number}","pulls_url":"https://api.github.com/repos/ionic-team/capacitor/pulls{/number}","milestones_url":"https://api.github.com/repos/ionic-team/capacitor/milestones{/number}","notifications_url":"https://api.github.com/repos/ionic-team/capacitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ionic-team/capacitor/labels{/name}","releases_url":"https://api.github.com/repos/ionic-team/capacitor/releases{/id}","deployments_url":"https://api.github.com/repos/ionic-team/capacitor/deployments","created_at":"2017-11-18T21:38:09Z","updated_at":"2018-11-08T06:14:15Z","pushed_at":"2018-11-08T11:47:23Z","git_url":"git://github.com/ionic-team/capacitor.git","ssh_url":"git@github.com:ionic-team/capacitor.git","clone_url":"https://github.com/ionic-team/capacitor.git","svn_url":"https://github.com/ionic-team/capacitor","homepage":"https://capacitor.ionicframework.com/","size":32840,"stargazers_count":1969,"watchers_count":1969,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":128,"mirror_url":null,"archived":false,"open_issues_count":144,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":128,"open_issues":144,"watchers":1969,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ionic-team/capacitor/pulls/962"},"html":{"href":"https://github.com/ionic-team/capacitor/pull/962"},"issue":{"href":"https://api.github.com/repos/ionic-team/capacitor/issues/962"},"comments":{"href":"https://api.github.com/repos/ionic-team/capacitor/issues/962/comments"},"review_comments":{"href":"https://api.github.com/repos/ionic-team/capacitor/pulls/962/comments"},"review_comment":{"href":"https://api.github.com/repos/ionic-team/capacitor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ionic-team/capacitor/pulls/962/commits"},"statuses":{"href":"https://api.github.com/repos/ionic-team/capacitor/statuses/71649acdda3f425baf05d4c3b4230d597ee260ac"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jcesarmobile","id":1637892,"node_id":"MDQ6VXNlcjE2Mzc4OTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1637892?v=4","gravatar_id":"","url":"https://api.github.com/users/jcesarmobile","html_url":"https://github.com/jcesarmobile","followers_url":"https://api.github.com/users/jcesarmobile/followers","following_url":"https://api.github.com/users/jcesarmobile/following{/other_user}","gists_url":"https://api.github.com/users/jcesarmobile/gists{/gist_id}","starred_url":"https://api.github.com/users/jcesarmobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcesarmobile/subscriptions","organizations_url":"https://api.github.com/users/jcesarmobile/orgs","repos_url":"https://api.github.com/users/jcesarmobile/repos","events_url":"https://api.github.com/users/jcesarmobile/events{/privacy}","received_events_url":"https://api.github.com/users/jcesarmobile/received_events","type":"User","site_admin":false},"comments":0,"review_comments":2,"maintainer_can_modify":false,"commits":2,"additions":39,"deletions":37,"changed_files":1}}
{"actor":{"display_login":"jcesarmobile"}}