Closed ricea closed 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.
It looks like this was a bug in the web-platform-tests H2 integration and not pywebsocket3, so closing.
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.