# std.http.WebSocket: Make 'upgrade: websocket' check case-insensitive · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e17dfb9da0bee4c1f118e0a72b88f29f43365f61)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e17dfb9da0bee4c1f118e0a72b88f29f43365f61

Requested commit: e17dfb9da0bee4c1f118e0a72b88f29f43365f61

Commit: e17dfb9da0bee4c1f118e0a72b88f29f43365f61

Tree: ab03fa52330f81c8a5069df9bb2b615282f4687d

Author: Linus Groh

Committer: Andrew Kelley

## Message

```
std.http.WebSocket: Make 'upgrade: websocket' check case-insensitive

I've seen implementations in the wild that send 'Upgrade: WebSocket',
which currently fails the handshake.

From https://datatracker.ietf.org/doc/html/rfc6455:

"If the response lacks an |Upgrade| header field or the |Upgrade| header
field contains a value that is not an ASCII case-insensitive match for
the value "websocket", the client MUST _Fail the WebSocket Connection_."

```

## Parents

- [54611e32d76e97c1f3145f4a14221668e70d52fb](https://git.cafe/gitcafe/zig/commit/54611e32d76e97c1f3145f4a14221668e70d52fb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e17dfb9da0bee4c1f118e0a72b88f29f43365f61?format=markdown)
