socketry / async-websocket

Asynchronous WebSocket client and server, supporting HTTP/1 and HTTP/2 for Ruby.
MIT License
166 stars 18 forks source link

Make protocol upgrade case-insensitive #31

Closed rawrafox closed 3 years ago

rawrafox commented 3 years ago

Description

Some clients/servers don't send the protocol upgrade header as exactly "websocket", and instead send it as for example "WebSocket".

This is allowed according to https://github.com/httpwg/http-core/pull/131 so it probably should be supported even if we never send it.

Types of Changes

Testing

ioquatix commented 3 years ago

We should probably add a spec for this to avoid regressions.