GoogleChromeLabs / pywebsocket3

BSD 3-Clause "New" or "Revised" License
44 stars 32 forks source link

headers_in seems to be case-sensitive #18

Closed ricea closed 3 years ago

ricea commented 3 years ago

It appears from https://github.com/web-platform-tests/wpt/pull/ that headers_in.get() operates in a case-sensitive fashion, which is inappropriate for HTTP headers.

I haven't looked into this in depth.

ricea commented 3 years ago

After digging a bit, it looks like the type of headers_in is email.message.Message. The documentation claims

Headers are stored and returned in case-preserving form, but field names are matched case-insensitively.

ricea commented 3 years ago

It looks like this was a bug in the web-platform-tests H2 integration and not pywebsocket3, so closing.