{"action":"created","issue":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/619","labels_url":"https://api.github.com/repos/visionmedia/superagent/issues/619/labels{/name}","comments_url":"https://api.github.com/repos/visionmedia/superagent/issues/619/comments","events_url":"https://api.github.com/repos/visionmedia/superagent/issues/619/events","html_url":"https://github.com/visionmedia/superagent/pull/619","id":66734091,"number":619,"title":"Fix redirects to other hosts with 303, 307 and 308","user":{"login":"jonasfj","id":149732,"avatar_url":"https://avatars.githubusercontent.com/u/149732?v=3","gravatar_id":"","url":"https://api.github.com/users/jonasfj","html_url":"https://github.com/jonasfj","followers_url":"https://api.github.com/users/jonasfj/followers","following_url":"https://api.github.com/users/jonasfj/following{/other_user}","gists_url":"https://api.github.com/users/jonasfj/gists{/gist_id}","starred_url":"https://api.github.com/users/jonasfj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonasfj/subscriptions","organizations_url":"https://api.github.com/users/jonasfj/orgs","repos_url":"https://api.github.com/users/jonasfj/repos","events_url":"https://api.github.com/users/jonasfj/events{/privacy}","received_events_url":"https://api.github.com/users/jonasfj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-06T23:52:39Z","updated_at":"2015-04-07T01:36:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/visionmedia/superagent/pulls/619","html_url":"https://github.com/visionmedia/superagent/pull/619","diff_url":"https://github.com/visionmedia/superagent/pull/619.diff","patch_url":"https://github.com/visionmedia/superagent/pull/619.patch"},"body":"Also added a bunch of test cases. And removed external requests to github in `redirects-other-host.js` tests, now using localhost with different ports for different hosts.\r\n\r\nFor some reason not deleting the `host` header causes bad things to happen...\r\nI can't actually find the place where it fails to overwrite the host header with the hostname from the url. But it has got to be there somewhere.\r\n\r\nAnyways, existing code depends on headers being deleted. So that probably a good solution."},"comment":{"url":"https://api.github.com/repos/visionmedia/superagent/issues/comments/90307510","html_url":"https://github.com/visionmedia/superagent/pull/619#issuecomment-90307510","issue_url":"https://api.github.com/repos/visionmedia/superagent/issues/619","id":90307510,"user":{"login":"defunctzombie","id":84792,"avatar_url":"https://avatars.githubusercontent.com/u/84792?v=3","gravatar_id":"","url":"https://api.github.com/users/defunctzombie","html_url":"https://github.com/defunctzombie","followers_url":"https://api.github.com/users/defunctzombie/followers","following_url":"https://api.github.com/users/defunctzombie/following{/other_user}","gists_url":"https://api.github.com/users/defunctzombie/gists{/gist_id}","starred_url":"https://api.github.com/users/defunctzombie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defunctzombie/subscriptions","organizations_url":"https://api.github.com/users/defunctzombie/orgs","repos_url":"https://api.github.com/users/defunctzombie/repos","events_url":"https://api.github.com/users/defunctzombie/events{/privacy}","received_events_url":"https://api.github.com/users/defunctzombie/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T01:36:05Z","updated_at":"2015-04-07T01:36:05Z","body":"LGTM"}}