{"action":"created","issue":{"url":"https://api.github.com/repos/brutasse/asyncio-sse/issues/5","labels_url":"https://api.github.com/repos/brutasse/asyncio-sse/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/brutasse/asyncio-sse/issues/5/comments","events_url":"https://api.github.com/repos/brutasse/asyncio-sse/issues/5/events","html_url":"https://github.com/brutasse/asyncio-sse/pull/5","id":76570636,"number":5,"title":"Fix iterating over headers","user":{"login":"dano","id":38807,"avatar_url":"https://avatars.githubusercontent.com/u/38807?v=3","gravatar_id":"","url":"https://api.github.com/users/dano","html_url":"https://github.com/dano","followers_url":"https://api.github.com/users/dano/followers","following_url":"https://api.github.com/users/dano/following{/other_user}","gists_url":"https://api.github.com/users/dano/gists{/gist_id}","starred_url":"https://api.github.com/users/dano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dano/subscriptions","organizations_url":"https://api.github.com/users/dano/orgs","repos_url":"https://api.github.com/users/dano/repos","events_url":"https://api.github.com/users/dano/events{/privacy}","received_events_url":"https://api.github.com/users/dano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T03:00:28Z","updated_at":"2015-05-19T07:39:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/brutasse/asyncio-sse/pulls/5","html_url":"https://github.com/brutasse/asyncio-sse/pull/5","diff_url":"https://github.com/brutasse/asyncio-sse/pull/5.diff","patch_url":"https://github.com/brutasse/asyncio-sse/pull/5.patch"},"body":"This fixes iterating over each entry in the headers dict - you're trying to iterate over each key/value pair, but the current code just iterates over the keys."},"comment":{"url":"https://api.github.com/repos/brutasse/asyncio-sse/issues/comments/103381932","html_url":"https://github.com/brutasse/asyncio-sse/pull/5#issuecomment-103381932","issue_url":"https://api.github.com/repos/brutasse/asyncio-sse/issues/5","id":103381932,"user":{"login":"brutasse","id":31269,"avatar_url":"https://avatars.githubusercontent.com/u/31269?v=3","gravatar_id":"","url":"https://api.github.com/users/brutasse","html_url":"https://github.com/brutasse","followers_url":"https://api.github.com/users/brutasse/followers","following_url":"https://api.github.com/users/brutasse/following{/other_user}","gists_url":"https://api.github.com/users/brutasse/gists{/gist_id}","starred_url":"https://api.github.com/users/brutasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brutasse/subscriptions","organizations_url":"https://api.github.com/users/brutasse/orgs","repos_url":"https://api.github.com/users/brutasse/repos","events_url":"https://api.github.com/users/brutasse/events{/privacy}","received_events_url":"https://api.github.com/users/brutasse/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T07:39:58Z","updated_at":"2015-05-19T07:39:58Z","body":"That's probably an API change in aiohttp. If it now provides case-insensitive header lookups there is no need to iterate anymore. I'll have a look!"}}