{"action":"created","comment":{"url":"https://api.github.com/repos/johnhof/express-proxy/pulls/comments/25579013","id":25579013,"diff_hunk":"@@ -137,12 +137,13 @@ function buildResultingMiddleware (host, options, stream) {\n     var reqOpts = {\n       url     :  URL.format(proxyUrl),\n       method  : req.method,\n-      headers : _.defaults(options.headers || {}, req.headers),\n+      // headers : _.defaults(options.headers || {}, req.headers),\n+      headers : options.headers,","path":"lib/proxy.js","position":17,"original_position":17,"commit_id":"0d314e0c3db84fd734358096d395e72e7afbf19e","original_commit_id":"0d314e0c3db84fd734358096d395e72e7afbf19e","user":{"login":"NickMele","id":2179012,"avatar_url":"https://avatars.githubusercontent.com/u/2179012?v=3","gravatar_id":"","url":"https://api.github.com/users/NickMele","html_url":"https://github.com/NickMele","followers_url":"https://api.github.com/users/NickMele/followers","following_url":"https://api.github.com/users/NickMele/following{/other_user}","gists_url":"https://api.github.com/users/NickMele/gists{/gist_id}","starred_url":"https://api.github.com/users/NickMele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickMele/subscriptions","organizations_url":"https://api.github.com/users/NickMele/orgs","repos_url":"https://api.github.com/users/NickMele/repos","events_url":"https://api.github.com/users/NickMele/events{/privacy}","received_events_url":"https://api.github.com/users/NickMele/received_events","type":"User","site_admin":false},"body":"I don't think this is a good solution though. i think we might be better off adding a config option where you can pass an array of headers to exclude from being sent to the proxy API.","created_at":"2015-03-02T05:32:09Z","updated_at":"2015-03-02T05:32:09Z","html_url":"https://github.com/johnhof/express-proxy/pull/7#discussion_r25579013","pull_request_url":"https://api.github.com/repos/johnhof/express-proxy/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/johnhof/express-proxy/pulls/comments/25579013"},"html":{"href":"https://github.com/johnhof/express-proxy/pull/7#discussion_r25579013"},"pull_request":{"href":"https://api.github.com/repos/johnhof/express-proxy/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/johnhof/express-proxy/pulls/7","id":30259534,"html_url":"https://github.com/johnhof/express-proxy/pull/7","diff_url":"https://github.com/johnhof/express-proxy/pull/7.diff","patch_url":"https://github.com/johnhof/express-proxy/pull/7.patch","issue_url":"https://api.github.com/repos/johnhof/express-proxy/issues/7","number":7,"state":"open","locked":false,"title":"Cleaning up integration testing","user":{"login":"NickMele","id":2179012,"avatar_url":"https://avatars.githubusercontent.com/u/2179012?v=3","gravatar_id":"","url":"https://api.github.com/users/NickMele","html_url":"https://github.com/NickMele","followers_url":"https://api.github.com/users/NickMele/followers","following_url":"https://api.github.com/users/NickMele/following{/other_user}","gists_url":"https://api.github.com/users/NickMele/gists{/gist_id}","starred_url":"https://api.github.com/users/NickMele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickMele/subscriptions","organizations_url":"https://api.github.com/users/NickMele/orgs","repos_url":"https://api.github.com/users/NickMele/repos","events_url":"https://api.github.com/users/NickMele/events{/privacy}","received_events_url":"https://api.github.com/users/NickMele/received_events","type":"User","site_admin":false},"body":"@johnhof give this a shot. the integration tests seem to be running with these changes.","created_at":"2015-03-02T05:27:27Z","updated_at":"2015-03-02T05:32:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edfbf2d53d9b61a6e0d276bee8d3314a2ad8af98","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/johnhof/express-proxy/pulls/7/commits","review_comments_url":"https://api.github.com/repos/johnhof/express-proxy/pulls/7/comments","review_comment_url":"https://api.github.com/repos/johnhof/express-proxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/johnhof/express-proxy/issues/7/comments","statuses_url":"https://api.github.com/repos/johnhof/express-proxy/statuses/0d314e0c3db84fd734358096d395e72e7afbf19e","head":{"label":"NickMele:master","ref":"master","sha":"0d314e0c3db84fd734358096d395e72e7afbf19e","user":{"login":"NickMele","id":2179012,"avatar_url":"https://avatars.githubusercontent.com/u/2179012?v=3","gravatar_id":"","url":"https://api.github.com/users/NickMele","html_url":"https://github.com/NickMele","followers_url":"https://api.github.com/users/NickMele/followers","following_url":"https://api.github.com/users/NickMele/following{/other_user}","gists_url":"https://api.github.com/users/NickMele/gists{/gist_id}","starred_url":"https://api.github.com/users/NickMele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickMele/subscriptions","organizations_url":"https://api.github.com/users/NickMele/orgs","repos_url":"https://api.github.com/users/NickMele/repos","events_url":"https://api.github.com/users/NickMele/events{/privacy}","received_events_url":"https://api.github.com/users/NickMele/received_events","type":"User","site_admin":false},"repo":{"id":31474732,"name":"express-proxy","full_name":"NickMele/express-proxy","owner":{"login":"NickMele","id":2179012,"avatar_url":"https://avatars.githubusercontent.com/u/2179012?v=3","gravatar_id":"","url":"https://api.github.com/users/NickMele","html_url":"https://github.com/NickMele","followers_url":"https://api.github.com/users/NickMele/followers","following_url":"https://api.github.com/users/NickMele/following{/other_user}","gists_url":"https://api.github.com/users/NickMele/gists{/gist_id}","starred_url":"https://api.github.com/users/NickMele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickMele/subscriptions","organizations_url":"https://api.github.com/users/NickMele/orgs","repos_url":"https://api.github.com/users/NickMele/repos","events_url":"https://api.github.com/users/NickMele/events{/privacy}","received_events_url":"https://api.github.com/users/NickMele/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NickMele/express-proxy","description":"Request proxying middleware for express","fork":true,"url":"https://api.github.com/repos/NickMele/express-proxy","forks_url":"https://api.github.com/repos/NickMele/express-proxy/forks","keys_url":"https://api.github.com/repos/NickMele/express-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NickMele/express-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NickMele/express-proxy/teams","hooks_url":"https://api.github.com/repos/NickMele/express-proxy/hooks","issue_events_url":"https://api.github.com/repos/NickMele/express-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/NickMele/express-proxy/events","assignees_url":"https://api.github.com/repos/NickMele/express-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/NickMele/express-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/NickMele/express-proxy/tags","blobs_url":"https://api.github.com/repos/NickMele/express-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NickMele/express-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NickMele/express-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/NickMele/express-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NickMele/express-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/NickMele/express-proxy/languages","stargazers_url":"https://api.github.com/repos/NickMele/express-proxy/stargazers","contributors_url":"https://api.github.com/repos/NickMele/express-proxy/contributors","subscribers_url":"https://api.github.com/repos/NickMele/express-proxy/subscribers","subscription_url":"https://api.github.com/repos/NickMele/express-proxy/subscription","commits_url":"https://api.github.com/repos/NickMele/express-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/NickMele/express-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/NickMele/express-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/NickMele/express-proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/NickMele/express-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/NickMele/express-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NickMele/express-proxy/merges","archive_url":"https://api.github.com/repos/NickMele/express-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NickMele/express-proxy/downloads","issues_url":"https://api.github.com/repos/NickMele/express-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/NickMele/express-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/NickMele/express-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/NickMele/express-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NickMele/express-proxy/labels{/name}","releases_url":"https://api.github.com/repos/NickMele/express-proxy/releases{/id}","created_at":"2015-02-28T20:01:33Z","updated_at":"2015-03-02T05:26:53Z","pushed_at":"2015-03-02T05:26:53Z","git_url":"git://github.com/NickMele/express-proxy.git","ssh_url":"git@github.com:NickMele/express-proxy.git","clone_url":"https://github.com/NickMele/express-proxy.git","svn_url":"https://github.com/NickMele/express-proxy","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"johnhof:master","ref":"master","sha":"1654cf2d9029cd45818a131d883a3265d818daaa","user":{"login":"johnhof","id":2301233,"avatar_url":"https://avatars.githubusercontent.com/u/2301233?v=3","gravatar_id":"","url":"https://api.github.com/users/johnhof","html_url":"https://github.com/johnhof","followers_url":"https://api.github.com/users/johnhof/followers","following_url":"https://api.github.com/users/johnhof/following{/other_user}","gists_url":"https://api.github.com/users/johnhof/gists{/gist_id}","starred_url":"https://api.github.com/users/johnhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnhof/subscriptions","organizations_url":"https://api.github.com/users/johnhof/orgs","repos_url":"https://api.github.com/users/johnhof/repos","events_url":"https://api.github.com/users/johnhof/events{/privacy}","received_events_url":"https://api.github.com/users/johnhof/received_events","type":"User","site_admin":false},"repo":{"id":31339584,"name":"express-proxy","full_name":"johnhof/express-proxy","owner":{"login":"johnhof","id":2301233,"avatar_url":"https://avatars.githubusercontent.com/u/2301233?v=3","gravatar_id":"","url":"https://api.github.com/users/johnhof","html_url":"https://github.com/johnhof","followers_url":"https://api.github.com/users/johnhof/followers","following_url":"https://api.github.com/users/johnhof/following{/other_user}","gists_url":"https://api.github.com/users/johnhof/gists{/gist_id}","starred_url":"https://api.github.com/users/johnhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnhof/subscriptions","organizations_url":"https://api.github.com/users/johnhof/orgs","repos_url":"https://api.github.com/users/johnhof/repos","events_url":"https://api.github.com/users/johnhof/events{/privacy}","received_events_url":"https://api.github.com/users/johnhof/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnhof/express-proxy","description":"Request proxying middleware for express","fork":false,"url":"https://api.github.com/repos/johnhof/express-proxy","forks_url":"https://api.github.com/repos/johnhof/express-proxy/forks","keys_url":"https://api.github.com/repos/johnhof/express-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnhof/express-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnhof/express-proxy/teams","hooks_url":"https://api.github.com/repos/johnhof/express-proxy/hooks","issue_events_url":"https://api.github.com/repos/johnhof/express-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/johnhof/express-proxy/events","assignees_url":"https://api.github.com/repos/johnhof/express-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/johnhof/express-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/johnhof/express-proxy/tags","blobs_url":"https://api.github.com/repos/johnhof/express-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnhof/express-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnhof/express-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnhof/express-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnhof/express-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/johnhof/express-proxy/languages","stargazers_url":"https://api.github.com/repos/johnhof/express-proxy/stargazers","contributors_url":"https://api.github.com/repos/johnhof/express-proxy/contributors","subscribers_url":"https://api.github.com/repos/johnhof/express-proxy/subscribers","subscription_url":"https://api.github.com/repos/johnhof/express-proxy/subscription","commits_url":"https://api.github.com/repos/johnhof/express-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnhof/express-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnhof/express-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnhof/express-proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnhof/express-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/johnhof/express-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnhof/express-proxy/merges","archive_url":"https://api.github.com/repos/johnhof/express-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnhof/express-proxy/downloads","issues_url":"https://api.github.com/repos/johnhof/express-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/johnhof/express-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/johnhof/express-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/johnhof/express-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnhof/express-proxy/labels{/name}","releases_url":"https://api.github.com/repos/johnhof/express-proxy/releases{/id}","created_at":"2015-02-25T22:39:43Z","updated_at":"2015-03-01T03:29:45Z","pushed_at":"2015-03-01T03:29:45Z","git_url":"git://github.com/johnhof/express-proxy.git","ssh_url":"git@github.com:johnhof/express-proxy.git","clone_url":"https://github.com/johnhof/express-proxy.git","svn_url":"https://github.com/johnhof/express-proxy","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/johnhof/express-proxy/pulls/7"},"html":{"href":"https://github.com/johnhof/express-proxy/pull/7"},"issue":{"href":"https://api.github.com/repos/johnhof/express-proxy/issues/7"},"comments":{"href":"https://api.github.com/repos/johnhof/express-proxy/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/johnhof/express-proxy/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/johnhof/express-proxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/johnhof/express-proxy/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/johnhof/express-proxy/statuses/0d314e0c3db84fd734358096d395e72e7afbf19e"}}}}