{"action":"created","issue":{"url":"https://api.github.com/repos/shazow/urllib3/issues/564","labels_url":"https://api.github.com/repos/shazow/urllib3/issues/564/labels{/name}","comments_url":"https://api.github.com/repos/shazow/urllib3/issues/564/comments","events_url":"https://api.github.com/repos/shazow/urllib3/issues/564/events","html_url":"https://github.com/shazow/urllib3/issues/564","id":59952881,"number":564,"title":"set-cookies headers are lost after creating a HTTPHeaderDict using an instance of HTTPHeaderDict","user":{"login":"seocam","id":33388,"avatar_url":"https://avatars.githubusercontent.com/u/33388?v=3","gravatar_id":"","url":"https://api.github.com/users/seocam","html_url":"https://github.com/seocam","followers_url":"https://api.github.com/users/seocam/followers","following_url":"https://api.github.com/users/seocam/following{/other_user}","gists_url":"https://api.github.com/users/seocam/gists{/gist_id}","starred_url":"https://api.github.com/users/seocam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seocam/subscriptions","organizations_url":"https://api.github.com/users/seocam/orgs","repos_url":"https://api.github.com/users/seocam/repos","events_url":"https://api.github.com/users/seocam/events{/privacy}","received_events_url":"https://api.github.com/users/seocam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-05T13:43:25Z","updated_at":"2015-08-06T22:11:38Z","closed_at":"2015-08-06T22:11:38Z","body":"```python\r\nheaders = HTTPHeaderDict()\r\nheaders.add('set-cookie', 'foo')\r\nheaders.add('set-cookie', 'bar')\r\nheaders.getlist('set-cookie')\r\nOut: ['foo', 'bar']\r\n\r\nheaders2 = HTTPHeaderDict(headers)\r\nheaders2.getlist('set-cookie')\r\nOut: ['foo, bar']\r\n```\r\n\r\nI'm gonna send a PR with a test for \r\n```python\r\nassert headers2.getlist('set-cookie') == headers.getlist('set-cookie') \r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9227040-set-cookies-headers-are-lost-after-creating-a-httpheaderdict-using-an-instance-of-httpheaderdict?utm_campaign=plugin&utm_content=tracker%2F192525&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F192525&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/shazow/urllib3/issues/comments/128523787","html_url":"https://github.com/shazow/urllib3/issues/564#issuecomment-128523787","issue_url":"https://api.github.com/repos/shazow/urllib3/issues/564","id":128523787,"user":{"login":"shazow","id":6292,"avatar_url":"https://avatars.githubusercontent.com/u/6292?v=3","gravatar_id":"","url":"https://api.github.com/users/shazow","html_url":"https://github.com/shazow","followers_url":"https://api.github.com/users/shazow/followers","following_url":"https://api.github.com/users/shazow/following{/other_user}","gists_url":"https://api.github.com/users/shazow/gists{/gist_id}","starred_url":"https://api.github.com/users/shazow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shazow/subscriptions","organizations_url":"https://api.github.com/users/shazow/orgs","repos_url":"https://api.github.com/users/shazow/repos","events_url":"https://api.github.com/users/shazow/events{/privacy}","received_events_url":"https://api.github.com/users/shazow/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T22:11:38Z","updated_at":"2015-08-06T22:11:38Z","body":"I believe so!"}}