Prepare compatibility with websockets 17.0.

Merged
AA
4mo ago
+35-9
  • Convert headers back to the original bytes in handle_connect().
  • Ensure consistency across versions in test_headers().

Fix #3035.