{"action":"created","comment":{"url":"https://api.github.com/repos/cbeer/ldp/pulls/comments/23384857","id":23384857,"diff_hunk":"@@ -69,7 +69,8 @@ def post url, body = nil, headers = {}\n     logger.debug \"LDP: POST [#{url}]\"\n     resp = http.post do |req|\n       req.url munge_to_relative_url(url)\n-      req.headers = default_headers.merge headers\n+      extraheaders = default_headers.merge headers\n+      req.headers = req.headers.merge extraheaders","path":"lib/ldp/client/methods.rb","position":null,"original_position":6,"commit_id":"3362ec9078eb1ab75b8d573b8f369bf521df944e","original_commit_id":"a62c891e632e253a48e7c2d4172925b39362c8e3","user":{"login":"lasse-aagren","id":1670128,"avatar_url":"https://avatars.githubusercontent.com/u/1670128?v=3","gravatar_id":"","url":"https://api.github.com/users/lasse-aagren","html_url":"https://github.com/lasse-aagren","followers_url":"https://api.github.com/users/lasse-aagren/followers","following_url":"https://api.github.com/users/lasse-aagren/following{/other_user}","gists_url":"https://api.github.com/users/lasse-aagren/gists{/gist_id}","starred_url":"https://api.github.com/users/lasse-aagren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasse-aagren/subscriptions","organizations_url":"https://api.github.com/users/lasse-aagren/orgs","repos_url":"https://api.github.com/users/lasse-aagren/repos","events_url":"https://api.github.com/users/lasse-aagren/events{/privacy}","received_events_url":"https://api.github.com/users/lasse-aagren/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-01-22T15:54:56Z","updated_at":"2015-01-22T15:54:56Z","html_url":"https://github.com/cbeer/ldp/pull/38#discussion_r23384857","pull_request_url":"https://api.github.com/repos/cbeer/ldp/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/cbeer/ldp/pulls/comments/23384857"},"html":{"href":"https://github.com/cbeer/ldp/pull/38#discussion_r23384857"},"pull_request":{"href":"https://api.github.com/repos/cbeer/ldp/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/cbeer/ldp/pulls/38","id":27839959,"html_url":"https://github.com/cbeer/ldp/pull/38","diff_url":"https://github.com/cbeer/ldp/pull/38.diff","patch_url":"https://github.com/cbeer/ldp/pull/38.patch","issue_url":"https://api.github.com/repos/cbeer/ldp/issues/38","number":38,"state":"open","locked":false,"title":"fix overwrite of HTTP headers","user":{"login":"lasse-aagren","id":1670128,"avatar_url":"https://avatars.githubusercontent.com/u/1670128?v=3","gravatar_id":"","url":"https://api.github.com/users/lasse-aagren","html_url":"https://github.com/lasse-aagren","followers_url":"https://api.github.com/users/lasse-aagren/followers","following_url":"https://api.github.com/users/lasse-aagren/following{/other_user}","gists_url":"https://api.github.com/users/lasse-aagren/gists{/gist_id}","starred_url":"https://api.github.com/users/lasse-aagren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasse-aagren/subscriptions","organizations_url":"https://api.github.com/users/lasse-aagren/orgs","repos_url":"https://api.github.com/users/lasse-aagren/repos","events_url":"https://api.github.com/users/lasse-aagren/events{/privacy}","received_events_url":"https://api.github.com/users/lasse-aagren/received_events","type":"User","site_admin":false},"body":"such that downstream consumer added headers (e.g. basic auth) don't dissapear","created_at":"2015-01-22T12:52:51Z","updated_at":"2015-01-22T15:54:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"568551e106417a9e40c086b3101acfbf32973663","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cbeer/ldp/pulls/38/commits","review_comments_url":"https://api.github.com/repos/cbeer/ldp/pulls/38/comments","review_comment_url":"https://api.github.com/repos/cbeer/ldp/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cbeer/ldp/issues/38/comments","statuses_url":"https://api.github.com/repos/cbeer/ldp/statuses/3362ec9078eb1ab75b8d573b8f369bf521df944e","head":{"label":"lasse-aagren:header-fix","ref":"header-fix","sha":"3362ec9078eb1ab75b8d573b8f369bf521df944e","user":{"login":"lasse-aagren","id":1670128,"avatar_url":"https://avatars.githubusercontent.com/u/1670128?v=3","gravatar_id":"","url":"https://api.github.com/users/lasse-aagren","html_url":"https://github.com/lasse-aagren","followers_url":"https://api.github.com/users/lasse-aagren/followers","following_url":"https://api.github.com/users/lasse-aagren/following{/other_user}","gists_url":"https://api.github.com/users/lasse-aagren/gists{/gist_id}","starred_url":"https://api.github.com/users/lasse-aagren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasse-aagren/subscriptions","organizations_url":"https://api.github.com/users/lasse-aagren/orgs","repos_url":"https://api.github.com/users/lasse-aagren/repos","events_url":"https://api.github.com/users/lasse-aagren/events{/privacy}","received_events_url":"https://api.github.com/users/lasse-aagren/received_events","type":"User","site_admin":false},"repo":{"id":29394980,"name":"ldp","full_name":"lasse-aagren/ldp","owner":{"login":"lasse-aagren","id":1670128,"avatar_url":"https://avatars.githubusercontent.com/u/1670128?v=3","gravatar_id":"","url":"https://api.github.com/users/lasse-aagren","html_url":"https://github.com/lasse-aagren","followers_url":"https://api.github.com/users/lasse-aagren/followers","following_url":"https://api.github.com/users/lasse-aagren/following{/other_user}","gists_url":"https://api.github.com/users/lasse-aagren/gists{/gist_id}","starred_url":"https://api.github.com/users/lasse-aagren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasse-aagren/subscriptions","organizations_url":"https://api.github.com/users/lasse-aagren/orgs","repos_url":"https://api.github.com/users/lasse-aagren/repos","events_url":"https://api.github.com/users/lasse-aagren/events{/privacy}","received_events_url":"https://api.github.com/users/lasse-aagren/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lasse-aagren/ldp","description":"Linked Data Platform.rb client","fork":true,"url":"https://api.github.com/repos/lasse-aagren/ldp","forks_url":"https://api.github.com/repos/lasse-aagren/ldp/forks","keys_url":"https://api.github.com/repos/lasse-aagren/ldp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lasse-aagren/ldp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lasse-aagren/ldp/teams","hooks_url":"https://api.github.com/repos/lasse-aagren/ldp/hooks","issue_events_url":"https://api.github.com/repos/lasse-aagren/ldp/issues/events{/number}","events_url":"https://api.github.com/repos/lasse-aagren/ldp/events","assignees_url":"https://api.github.com/repos/lasse-aagren/ldp/assignees{/user}","branches_url":"https://api.github.com/repos/lasse-aagren/ldp/branches{/branch}","tags_url":"https://api.github.com/repos/lasse-aagren/ldp/tags","blobs_url":"https://api.github.com/repos/lasse-aagren/ldp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lasse-aagren/ldp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lasse-aagren/ldp/git/refs{/sha}","trees_url":"https://api.github.com/repos/lasse-aagren/ldp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lasse-aagren/ldp/statuses/{sha}","languages_url":"https://api.github.com/repos/lasse-aagren/ldp/languages","stargazers_url":"https://api.github.com/repos/lasse-aagren/ldp/stargazers","contributors_url":"https://api.github.com/repos/lasse-aagren/ldp/contributors","subscribers_url":"https://api.github.com/repos/lasse-aagren/ldp/subscribers","subscription_url":"https://api.github.com/repos/lasse-aagren/ldp/subscription","commits_url":"https://api.github.com/repos/lasse-aagren/ldp/commits{/sha}","git_commits_url":"https://api.github.com/repos/lasse-aagren/ldp/git/commits{/sha}","comments_url":"https://api.github.com/repos/lasse-aagren/ldp/comments{/number}","issue_comment_url":"https://api.github.com/repos/lasse-aagren/ldp/issues/comments/{number}","contents_url":"https://api.github.com/repos/lasse-aagren/ldp/contents/{+path}","compare_url":"https://api.github.com/repos/lasse-aagren/ldp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lasse-aagren/ldp/merges","archive_url":"https://api.github.com/repos/lasse-aagren/ldp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lasse-aagren/ldp/downloads","issues_url":"https://api.github.com/repos/lasse-aagren/ldp/issues{/number}","pulls_url":"https://api.github.com/repos/lasse-aagren/ldp/pulls{/number}","milestones_url":"https://api.github.com/repos/lasse-aagren/ldp/milestones{/number}","notifications_url":"https://api.github.com/repos/lasse-aagren/ldp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lasse-aagren/ldp/labels{/name}","releases_url":"https://api.github.com/repos/lasse-aagren/ldp/releases{/id}","created_at":"2015-01-17T15:18:20Z","updated_at":"2015-01-17T15:18:22Z","pushed_at":"2015-01-22T15:54:38Z","git_url":"git://github.com/lasse-aagren/ldp.git","ssh_url":"git@github.com:lasse-aagren/ldp.git","clone_url":"https://github.com/lasse-aagren/ldp.git","svn_url":"https://github.com/lasse-aagren/ldp","homepage":null,"size":666,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"cbeer:master","ref":"master","sha":"b1901ef734765d3f0ca7d503789ce443417edb9a","user":{"login":"cbeer","id":111218,"avatar_url":"https://avatars.githubusercontent.com/u/111218?v=3","gravatar_id":"","url":"https://api.github.com/users/cbeer","html_url":"https://github.com/cbeer","followers_url":"https://api.github.com/users/cbeer/followers","following_url":"https://api.github.com/users/cbeer/following{/other_user}","gists_url":"https://api.github.com/users/cbeer/gists{/gist_id}","starred_url":"https://api.github.com/users/cbeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbeer/subscriptions","organizations_url":"https://api.github.com/users/cbeer/orgs","repos_url":"https://api.github.com/users/cbeer/repos","events_url":"https://api.github.com/users/cbeer/events{/privacy}","received_events_url":"https://api.github.com/users/cbeer/received_events","type":"User","site_admin":false},"repo":{"id":11781893,"name":"ldp","full_name":"cbeer/ldp","owner":{"login":"cbeer","id":111218,"avatar_url":"https://avatars.githubusercontent.com/u/111218?v=3","gravatar_id":"","url":"https://api.github.com/users/cbeer","html_url":"https://github.com/cbeer","followers_url":"https://api.github.com/users/cbeer/followers","following_url":"https://api.github.com/users/cbeer/following{/other_user}","gists_url":"https://api.github.com/users/cbeer/gists{/gist_id}","starred_url":"https://api.github.com/users/cbeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbeer/subscriptions","organizations_url":"https://api.github.com/users/cbeer/orgs","repos_url":"https://api.github.com/users/cbeer/repos","events_url":"https://api.github.com/users/cbeer/events{/privacy}","received_events_url":"https://api.github.com/users/cbeer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbeer/ldp","description":"Linked Data Platform.rb client","fork":false,"url":"https://api.github.com/repos/cbeer/ldp","forks_url":"https://api.github.com/repos/cbeer/ldp/forks","keys_url":"https://api.github.com/repos/cbeer/ldp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbeer/ldp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbeer/ldp/teams","hooks_url":"https://api.github.com/repos/cbeer/ldp/hooks","issue_events_url":"https://api.github.com/repos/cbeer/ldp/issues/events{/number}","events_url":"https://api.github.com/repos/cbeer/ldp/events","assignees_url":"https://api.github.com/repos/cbeer/ldp/assignees{/user}","branches_url":"https://api.github.com/repos/cbeer/ldp/branches{/branch}","tags_url":"https://api.github.com/repos/cbeer/ldp/tags","blobs_url":"https://api.github.com/repos/cbeer/ldp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbeer/ldp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbeer/ldp/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbeer/ldp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbeer/ldp/statuses/{sha}","languages_url":"https://api.github.com/repos/cbeer/ldp/languages","stargazers_url":"https://api.github.com/repos/cbeer/ldp/stargazers","contributors_url":"https://api.github.com/repos/cbeer/ldp/contributors","subscribers_url":"https://api.github.com/repos/cbeer/ldp/subscribers","subscription_url":"https://api.github.com/repos/cbeer/ldp/subscription","commits_url":"https://api.github.com/repos/cbeer/ldp/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbeer/ldp/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbeer/ldp/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbeer/ldp/issues/comments/{number}","contents_url":"https://api.github.com/repos/cbeer/ldp/contents/{+path}","compare_url":"https://api.github.com/repos/cbeer/ldp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbeer/ldp/merges","archive_url":"https://api.github.com/repos/cbeer/ldp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbeer/ldp/downloads","issues_url":"https://api.github.com/repos/cbeer/ldp/issues{/number}","pulls_url":"https://api.github.com/repos/cbeer/ldp/pulls{/number}","milestones_url":"https://api.github.com/repos/cbeer/ldp/milestones{/number}","notifications_url":"https://api.github.com/repos/cbeer/ldp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbeer/ldp/labels{/name}","releases_url":"https://api.github.com/repos/cbeer/ldp/releases{/id}","created_at":"2013-07-31T03:52:38Z","updated_at":"2015-01-22T12:39:38Z","pushed_at":"2015-01-22T12:39:39Z","git_url":"git://github.com/cbeer/ldp.git","ssh_url":"git@github.com:cbeer/ldp.git","clone_url":"https://github.com/cbeer/ldp.git","svn_url":"https://github.com/cbeer/ldp","homepage":null,"size":666,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":9,"forks":9,"open_issues":9,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cbeer/ldp/pulls/38"},"html":{"href":"https://github.com/cbeer/ldp/pull/38"},"issue":{"href":"https://api.github.com/repos/cbeer/ldp/issues/38"},"comments":{"href":"https://api.github.com/repos/cbeer/ldp/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/cbeer/ldp/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/cbeer/ldp/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cbeer/ldp/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/cbeer/ldp/statuses/3362ec9078eb1ab75b8d573b8f369bf521df944e"}}}}