async-websocket icon indicating copy to clipboard operation
async-websocket copied to clipboard

Compare protocols case-insensitively

Open ryu-sato opened this issue 1 year ago • 0 comments

This PR allows the protocol header of the "101 Switching Protocols" response received from the Websocket server to be compared case-insensitive.

Case-insensitive comparison is because the RFC states that it should be done so.

ref. https://www.rfc-editor.org/rfc/rfc9110.html#name-upgrade

Although protocol names are registered with a preferred case, recipients SHOULD use case-insensitive comparison when matching each protocol-name to supported protocols.

Types of Changes

  • Improvement

Contribution

ryu-sato avatar Apr 12 '24 17:04 ryu-sato