{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/3002","repository_url":"https://api.github.com/repos/kennethreitz/requests","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/3002/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/3002/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/3002/events","html_url":"https://github.com/kennethreitz/requests/issues/3002","id":132525007,"number":3002,"title":"Request via IPv6 ip result in a broken Host header","user":{"login":"pneumaticdeath","id":569440,"avatar_url":"https://avatars.githubusercontent.com/u/569440?v=3","gravatar_id":"","url":"https://api.github.com/users/pneumaticdeath","html_url":"https://github.com/pneumaticdeath","followers_url":"https://api.github.com/users/pneumaticdeath/followers","following_url":"https://api.github.com/users/pneumaticdeath/following{/other_user}","gists_url":"https://api.github.com/users/pneumaticdeath/gists{/gist_id}","starred_url":"https://api.github.com/users/pneumaticdeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pneumaticdeath/subscriptions","organizations_url":"https://api.github.com/users/pneumaticdeath/orgs","repos_url":"https://api.github.com/users/pneumaticdeath/repos","events_url":"https://api.github.com/users/pneumaticdeath/events{/privacy}","received_events_url":"https://api.github.com/users/pneumaticdeath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-09T20:30:32Z","updated_at":"2016-02-09T20:55:43Z","closed_at":null,"body":"This is a regression from 2.7.0 and 2.9.1.  When using a URL with an IPv6 ip in the host part of the url:\r\nhttp://[2620:10d:c021:11::75]/foo, in 2.7.0 the Host header looks correct as so: \r\nHost: [2620:10d:c021:11::75]\r\nBut when using 2.9.1, it gets munged:\r\nHost: [[2620:10d:c021:11::75]]\r\nThis causes Django to barf."},"comment":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/comments/182063314","html_url":"https://github.com/kennethreitz/requests/issues/3002#issuecomment-182063314","issue_url":"https://api.github.com/repos/kennethreitz/requests/issues/3002","id":182063314,"user":{"login":"pneumaticdeath","id":569440,"avatar_url":"https://avatars.githubusercontent.com/u/569440?v=3","gravatar_id":"","url":"https://api.github.com/users/pneumaticdeath","html_url":"https://github.com/pneumaticdeath","followers_url":"https://api.github.com/users/pneumaticdeath/followers","following_url":"https://api.github.com/users/pneumaticdeath/following{/other_user}","gists_url":"https://api.github.com/users/pneumaticdeath/gists{/gist_id}","starred_url":"https://api.github.com/users/pneumaticdeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pneumaticdeath/subscriptions","organizations_url":"https://api.github.com/users/pneumaticdeath/orgs","repos_url":"https://api.github.com/users/pneumaticdeath/repos","events_url":"https://api.github.com/users/pneumaticdeath/events{/privacy}","received_events_url":"https://api.github.com/users/pneumaticdeath/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T20:55:43Z","updated_at":"2016-02-09T20:55:43Z","body":"I got it from https://pypi.python.org/packages/source/r/requests/requests-2.9.1.tar.gz#md5=0b7f480d19012ec52bab78292efd976d"}}