diff --git a/lib/std/http/WebSocket.zig b/lib/std/http/WebSocket.zig index ad513fddf8..08bc420b67 100644 --- a/lib/std/http/WebSocket.zig +++ b/lib/std/http/WebSocket.zig @@ -30,7 +30,7 @@ pub fn init( if (std.ascii.eqlIgnoreCase(header.name, "sec-websocket-key")) { sec_websocket_key = header.value; } else if (std.ascii.eqlIgnoreCase(header.name, "upgrade")) { - if (!std.mem.eql(u8, header.value, "websocket")) + if (!std.ascii.eqlIgnoreCase(header.value, "websocket")) return false; upgrade_websocket = true; }