Closed mpf82 closed 6 years ago
Hi, if you want to propose a change, please create a PR. That way it is tested and done when the maintainer checks it.
I've hit this too. The original code probably "worked" because it was never executed, since it was comparing bytes in header to a regular string "sec-websocket-protocol", up until 0.3.5
Hello,
I have a demo application (basically a slightly modified version of the echo demo) that uses protocols, however after upgrading to 0.3.5 yesterday, I get an error in process_handshake_header() whenever I set matching protocols for server and client (Interestingly: omitting the protocols on either server or client, or giving server and client non-matching protocols works!)
Environment: Python 3.4 64 bit, cherrypy
Suggested fix in client/init.py:
I'm not even sure how the original code ever worked in the first place. Isn't value always a (byte)string? not sure how joining the (byte)string can result in an array.
If this really fixes the problem, you should consider to do the same for extensions.
Cheers, Mike