{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/3411","labels_url":"https://api.github.com/repos/libgit2/libgit2/issues/3411/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/libgit2/issues/3411/comments","events_url":"https://api.github.com/repos/libgit2/libgit2/issues/3411/events","html_url":"https://github.com/libgit2/libgit2/pull/3411","id":104895122,"number":3411,"title":"Include custom HTTP headers","user":{"login":"spraints","id":20158,"avatar_url":"https://avatars.githubusercontent.com/u/20158?v=3","gravatar_id":"","url":"https://api.github.com/users/spraints","html_url":"https://github.com/spraints","followers_url":"https://api.github.com/users/spraints/followers","following_url":"https://api.github.com/users/spraints/following{/other_user}","gists_url":"https://api.github.com/users/spraints/gists{/gist_id}","starred_url":"https://api.github.com/users/spraints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spraints/subscriptions","organizations_url":"https://api.github.com/users/spraints/orgs","repos_url":"https://api.github.com/users/spraints/repos","events_url":"https://api.github.com/users/spraints/events{/privacy}","received_events_url":"https://api.github.com/users/spraints/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-04T13:51:49Z","updated_at":"2015-09-27T22:43:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/libgit2/libgit2/pulls/3411","html_url":"https://github.com/libgit2/libgit2/pull/3411","diff_url":"https://github.com/libgit2/libgit2/pull/3411.diff","patch_url":"https://github.com/libgit2/libgit2/pull/3411.patch"},"body":"Libgit2 sets some headers for HTTP requests (User-Agent, Host, Accept, Content-Type, Transfer-Encoding, Content-Length, Accept). In our app, we'd like to set some custom headers (e.g. X-Forwarded-For, X-Request-Id, etc). This branch is a spike to add a pair of get/set accessors for extra HTTP headers for a `git_remote`. Is this general concept OK? Is there a better way to do this?"},"comment":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/comments/143599490","html_url":"https://github.com/libgit2/libgit2/pull/3411#issuecomment-143599490","issue_url":"https://api.github.com/repos/libgit2/libgit2/issues/3411","id":143599490,"user":{"login":"carlosmn","id":335443,"avatar_url":"https://avatars.githubusercontent.com/u/335443?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosmn","html_url":"https://github.com/carlosmn","followers_url":"https://api.github.com/users/carlosmn/followers","following_url":"https://api.github.com/users/carlosmn/following{/other_user}","gists_url":"https://api.github.com/users/carlosmn/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosmn/subscriptions","organizations_url":"https://api.github.com/users/carlosmn/orgs","repos_url":"https://api.github.com/users/carlosmn/repos","events_url":"https://api.github.com/users/carlosmn/events{/privacy}","received_events_url":"https://api.github.com/users/carlosmn/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T22:43:51Z","updated_at":"2015-09-27T22:43:51Z","body":":+1: we should eventually have concrete tests for this, but that's going to be a bit of a pain to do across the tests, so we can figure it out later. @ethomson ?"}}