asyncio-sse
asyncio-sse copied to clipboard
Fix iterating over headers
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.
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!
Yes, the most recent versions of aiohttp keep the headers in a case-insensitive dict, so there's no need to iterate at all. I suppose you might want to keep the iteration for backwards compatibility, though.
+1 Should be merged, please!
:+1: