{"action":"created","comment":{"url":"https://api.github.com/repos/icapps/niddler/pulls/comments/187559953","pull_request_review_id":119365222,"id":187559953,"diff_hunk":"@@ -150,15 +151,28 @@ private static Response makeResponse(@Nullable final NiddlerDebugger.DebugRespon\n \t\t\t\t.message(debugResponse.message);\n \n \t\tif (debugResponse.headers != null) {\n-\t\t\tbuilder.headers(Headers.of(debugResponse.headers));\n+\t\t\tfinal Headers.Builder headers = new Headers.Builder();\n+\t\t\tfor (final Map.Entry<String, List<String>> entry : debugResponse.headers.entrySet()) {\n+\t\t\t\tfor (final String value : entry.getValue()) {\n+\t\t\t\t\theaders.add(entry.getKey(), value);\n+\t\t\t\t}\n+\t\t\t}\n+\t\t\tbuilder.headers(headers.build());\n \t\t}\n \n \t\tif (!TextUtils.isEmpty(debugResponse.encodedBody)) {\n \t\t\tbuilder.body(ResponseBody.create(MediaType.parse(debugResponse.bodyMimeType), Base64.decode(debugResponse.encodedBody, Base64.DEFAULT)));\n \t\t}\n \t\tbuilder.sentRequestAtMillis(System.currentTimeMillis());\n+\t\tbuilder.request(request);\n \t\tbuilder.receivedResponseAtMillis(System.currentTimeMillis());\n \n+\t\tif (response != null) {","path":"niddler-lib/src/main/java/com/icapps/niddler/interceptor/okhttp/NiddlerOkHttpInterceptor.java","position":56,"original_position":56,"commit_id":"5cd65e2dfd6994a0621c2bc9e678ac4bc663da53","original_commit_id":"5cd65e2dfd6994a0621c2bc9e678ac4bc663da53","user":{"login":"vanlooverenkoen","id":21172855,"avatar_url":"https://avatars1.githubusercontent.com/u/21172855?v=4","gravatar_id":"","url":"https://api.github.com/users/vanlooverenkoen","html_url":"https://github.com/vanlooverenkoen","followers_url":"https://api.github.com/users/vanlooverenkoen/followers","following_url":"https://api.github.com/users/vanlooverenkoen/following{/other_user}","gists_url":"https://api.github.com/users/vanlooverenkoen/gists{/gist_id}","starred_url":"https://api.github.com/users/vanlooverenkoen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanlooverenkoen/subscriptions","organizations_url":"https://api.github.com/users/vanlooverenkoen/orgs","repos_url":"https://api.github.com/users/vanlooverenkoen/repos","events_url":"https://api.github.com/users/vanlooverenkoen/events{/privacy}","received_events_url":"https://api.github.com/users/vanlooverenkoen/received_events","type":"User","site_admin":false},"body":"i would invert the if","created_at":"2018-05-11T09:05:51Z","updated_at":"2018-05-11T09:06:37Z","html_url":"https://github.com/icapps/niddler/pull/4#discussion_r187559953","pull_request_url":"https://api.github.com/repos/icapps/niddler/pulls/4","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/icapps/niddler/pulls/comments/187559953"},"html":{"href":"https://github.com/icapps/niddler/pull/4#discussion_r187559953"},"pull_request":{"href":"https://api.github.com/repos/icapps/niddler/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/icapps/niddler/pulls/4","id":187179948,"html_url":"https://github.com/icapps/niddler/pull/4","diff_url":"https://github.com/icapps/niddler/pull/4.diff","patch_url":"https://github.com/icapps/niddler/pull/4.patch","issue_url":"https://api.github.com/repos/icapps/niddler/issues/4","number":4,"state":"closed","locked":false,"title":"Headers should be allowed to be repeated in debug requests/responses as well","user":{"login":"NicolaChimerapps","id":7778415,"avatar_url":"https://avatars3.githubusercontent.com/u/7778415?v=4","gravatar_id":"","url":"https://api.github.com/users/NicolaChimerapps","html_url":"https://github.com/NicolaChimerapps","followers_url":"https://api.github.com/users/NicolaChimerapps/followers","following_url":"https://api.github.com/users/NicolaChimerapps/following{/other_user}","gists_url":"https://api.github.com/users/NicolaChimerapps/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolaChimerapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolaChimerapps/subscriptions","organizations_url":"https://api.github.com/users/NicolaChimerapps/orgs","repos_url":"https://api.github.com/users/NicolaChimerapps/repos","events_url":"https://api.github.com/users/NicolaChimerapps/events{/privacy}","received_events_url":"https://api.github.com/users/NicolaChimerapps/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-10T12:31:14Z","updated_at":"2018-05-11T09:06:37Z","closed_at":"2018-05-11T06:49:13Z","merged_at":"2018-05-11T06:49:13Z","merge_commit_sha":"a7e600c57c817939dc329f4c3a1ca0dad1a1ee91","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":924240088,"url":"https://api.github.com/repos/icapps/niddler/labels/debugger","name":"debugger","color":"f4dfab","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/icapps/niddler/pulls/4/commits","review_comments_url":"https://api.github.com/repos/icapps/niddler/pulls/4/comments","review_comment_url":"https://api.github.com/repos/icapps/niddler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/icapps/niddler/issues/4/comments","statuses_url":"https://api.github.com/repos/icapps/niddler/statuses/5cd65e2dfd6994a0621c2bc9e678ac4bc663da53","head":{"label":"icapps:feature/RepeatingHeaders","ref":"feature/RepeatingHeaders","sha":"5cd65e2dfd6994a0621c2bc9e678ac4bc663da53","user":{"login":"icapps","id":15049218,"avatar_url":"https://avatars3.githubusercontent.com/u/15049218?v=4","gravatar_id":"","url":"https://api.github.com/users/icapps","html_url":"https://github.com/icapps","followers_url":"https://api.github.com/users/icapps/followers","following_url":"https://api.github.com/users/icapps/following{/other_user}","gists_url":"https://api.github.com/users/icapps/gists{/gist_id}","starred_url":"https://api.github.com/users/icapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icapps/subscriptions","organizations_url":"https://api.github.com/users/icapps/orgs","repos_url":"https://api.github.com/users/icapps/repos","events_url":"https://api.github.com/users/icapps/events{/privacy}","received_events_url":"https://api.github.com/users/icapps/received_events","type":"Organization","site_admin":false},"repo":{"id":73384233,"name":"niddler","full_name":"icapps/niddler","owner":{"login":"icapps","id":15049218,"avatar_url":"https://avatars3.githubusercontent.com/u/15049218?v=4","gravatar_id":"","url":"https://api.github.com/users/icapps","html_url":"https://github.com/icapps","followers_url":"https://api.github.com/users/icapps/followers","following_url":"https://api.github.com/users/icapps/following{/other_user}","gists_url":"https://api.github.com/users/icapps/gists{/gist_id}","starred_url":"https://api.github.com/users/icapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icapps/subscriptions","organizations_url":"https://api.github.com/users/icapps/orgs","repos_url":"https://api.github.com/users/icapps/repos","events_url":"https://api.github.com/users/icapps/events{/privacy}","received_events_url":"https://api.github.com/users/icapps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/icapps/niddler","description":null,"fork":false,"url":"https://api.github.com/repos/icapps/niddler","forks_url":"https://api.github.com/repos/icapps/niddler/forks","keys_url":"https://api.github.com/repos/icapps/niddler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/icapps/niddler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/icapps/niddler/teams","hooks_url":"https://api.github.com/repos/icapps/niddler/hooks","issue_events_url":"https://api.github.com/repos/icapps/niddler/issues/events{/number}","events_url":"https://api.github.com/repos/icapps/niddler/events","assignees_url":"https://api.github.com/repos/icapps/niddler/assignees{/user}","branches_url":"https://api.github.com/repos/icapps/niddler/branches{/branch}","tags_url":"https://api.github.com/repos/icapps/niddler/tags","blobs_url":"https://api.github.com/repos/icapps/niddler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/icapps/niddler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/icapps/niddler/git/refs{/sha}","trees_url":"https://api.github.com/repos/icapps/niddler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/icapps/niddler/statuses/{sha}","languages_url":"https://api.github.com/repos/icapps/niddler/languages","stargazers_url":"https://api.github.com/repos/icapps/niddler/stargazers","contributors_url":"https://api.github.com/repos/icapps/niddler/contributors","subscribers_url":"https://api.github.com/repos/icapps/niddler/subscribers","subscription_url":"https://api.github.com/repos/icapps/niddler/subscription","commits_url":"https://api.github.com/repos/icapps/niddler/commits{/sha}","git_commits_url":"https://api.github.com/repos/icapps/niddler/git/commits{/sha}","comments_url":"https://api.github.com/repos/icapps/niddler/comments{/number}","issue_comment_url":"https://api.github.com/repos/icapps/niddler/issues/comments{/number}","contents_url":"https://api.github.com/repos/icapps/niddler/contents/{+path}","compare_url":"https://api.github.com/repos/icapps/niddler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/icapps/niddler/merges","archive_url":"https://api.github.com/repos/icapps/niddler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/icapps/niddler/downloads","issues_url":"https://api.github.com/repos/icapps/niddler/issues{/number}","pulls_url":"https://api.github.com/repos/icapps/niddler/pulls{/number}","milestones_url":"https://api.github.com/repos/icapps/niddler/milestones{/number}","notifications_url":"https://api.github.com/repos/icapps/niddler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/icapps/niddler/labels{/name}","releases_url":"https://api.github.com/repos/icapps/niddler/releases{/id}","deployments_url":"https://api.github.com/repos/icapps/niddler/deployments","created_at":"2016-11-10T13:23:00Z","updated_at":"2018-04-04T08:36:11Z","pushed_at":"2018-05-11T06:49:16Z","git_url":"git://github.com/icapps/niddler.git","ssh_url":"git@github.com:icapps/niddler.git","clone_url":"https://github.com/icapps/niddler.git","svn_url":"https://github.com/icapps/niddler","homepage":null,"size":470,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":4,"default_branch":"master"}},"base":{"label":"icapps:feature/Debugging","ref":"feature/Debugging","sha":"826290f46ab8a54ed17f395523e9a95562ad10b7","user":{"login":"icapps","id":15049218,"avatar_url":"https://avatars3.githubusercontent.com/u/15049218?v=4","gravatar_id":"","url":"https://api.github.com/users/icapps","html_url":"https://github.com/icapps","followers_url":"https://api.github.com/users/icapps/followers","following_url":"https://api.github.com/users/icapps/following{/other_user}","gists_url":"https://api.github.com/users/icapps/gists{/gist_id}","starred_url":"https://api.github.com/users/icapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icapps/subscriptions","organizations_url":"https://api.github.com/users/icapps/orgs","repos_url":"https://api.github.com/users/icapps/repos","events_url":"https://api.github.com/users/icapps/events{/privacy}","received_events_url":"https://api.github.com/users/icapps/received_events","type":"Organization","site_admin":false},"repo":{"id":73384233,"name":"niddler","full_name":"icapps/niddler","owner":{"login":"icapps","id":15049218,"avatar_url":"https://avatars3.githubusercontent.com/u/15049218?v=4","gravatar_id":"","url":"https://api.github.com/users/icapps","html_url":"https://github.com/icapps","followers_url":"https://api.github.com/users/icapps/followers","following_url":"https://api.github.com/users/icapps/following{/other_user}","gists_url":"https://api.github.com/users/icapps/gists{/gist_id}","starred_url":"https://api.github.com/users/icapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icapps/subscriptions","organizations_url":"https://api.github.com/users/icapps/orgs","repos_url":"https://api.github.com/users/icapps/repos","events_url":"https://api.github.com/users/icapps/events{/privacy}","received_events_url":"https://api.github.com/users/icapps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/icapps/niddler","description":null,"fork":false,"url":"https://api.github.com/repos/icapps/niddler","forks_url":"https://api.github.com/repos/icapps/niddler/forks","keys_url":"https://api.github.com/repos/icapps/niddler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/icapps/niddler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/icapps/niddler/teams","hooks_url":"https://api.github.com/repos/icapps/niddler/hooks","issue_events_url":"https://api.github.com/repos/icapps/niddler/issues/events{/number}","events_url":"https://api.github.com/repos/icapps/niddler/events","assignees_url":"https://api.github.com/repos/icapps/niddler/assignees{/user}","branches_url":"https://api.github.com/repos/icapps/niddler/branches{/branch}","tags_url":"https://api.github.com/repos/icapps/niddler/tags","blobs_url":"https://api.github.com/repos/icapps/niddler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/icapps/niddler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/icapps/niddler/git/refs{/sha}","trees_url":"https://api.github.com/repos/icapps/niddler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/icapps/niddler/statuses/{sha}","languages_url":"https://api.github.com/repos/icapps/niddler/languages","stargazers_url":"https://api.github.com/repos/icapps/niddler/stargazers","contributors_url":"https://api.github.com/repos/icapps/niddler/contributors","subscribers_url":"https://api.github.com/repos/icapps/niddler/subscribers","subscription_url":"https://api.github.com/repos/icapps/niddler/subscription","commits_url":"https://api.github.com/repos/icapps/niddler/commits{/sha}","git_commits_url":"https://api.github.com/repos/icapps/niddler/git/commits{/sha}","comments_url":"https://api.github.com/repos/icapps/niddler/comments{/number}","issue_comment_url":"https://api.github.com/repos/icapps/niddler/issues/comments{/number}","contents_url":"https://api.github.com/repos/icapps/niddler/contents/{+path}","compare_url":"https://api.github.com/repos/icapps/niddler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/icapps/niddler/merges","archive_url":"https://api.github.com/repos/icapps/niddler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/icapps/niddler/downloads","issues_url":"https://api.github.com/repos/icapps/niddler/issues{/number}","pulls_url":"https://api.github.com/repos/icapps/niddler/pulls{/number}","milestones_url":"https://api.github.com/repos/icapps/niddler/milestones{/number}","notifications_url":"https://api.github.com/repos/icapps/niddler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/icapps/niddler/labels{/name}","releases_url":"https://api.github.com/repos/icapps/niddler/releases{/id}","deployments_url":"https://api.github.com/repos/icapps/niddler/deployments","created_at":"2016-11-10T13:23:00Z","updated_at":"2018-04-04T08:36:11Z","pushed_at":"2018-05-11T06:49:16Z","git_url":"git://github.com/icapps/niddler.git","ssh_url":"git@github.com:icapps/niddler.git","clone_url":"https://github.com/icapps/niddler.git","svn_url":"https://github.com/icapps/niddler","homepage":null,"size":470,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/icapps/niddler/pulls/4"},"html":{"href":"https://github.com/icapps/niddler/pull/4"},"issue":{"href":"https://api.github.com/repos/icapps/niddler/issues/4"},"comments":{"href":"https://api.github.com/repos/icapps/niddler/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/icapps/niddler/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/icapps/niddler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/icapps/niddler/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/icapps/niddler/statuses/5cd65e2dfd6994a0621c2bc9e678ac4bc663da53"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"vanlooverenkoen"}}