karlseguin / websocket.zig

A websocket implementation for zig
MIT License
302 stars 28 forks source link

Firefox: upgrade header not checked properly #4

Closed Deins closed 1 year ago

Deins commented 1 year ago

Websocket connection from firefox was not accepted and returned HandshakeError.InvalidConnection. Because firefox appends keep-alive to connection header.

Connection: keep-alive, Upgrade
karlseguin commented 1 year ago

I wonder how ascii.indexOfIgnoreCase compares to this.