From aacf92eb11d64b2de39e6291b6352b10dde143e3 Mon Sep 17 00:00:00 2001 From: hashrock Date: Fri, 31 May 2019 00:51:47 +0900 Subject: [PATCH] ws: Add sec-websocket-version to handshake header (denoland/deno_std#468) Original: https://github.com/denoland/deno_std/commit/40f55da9cff4b9589f07785db55f2eab01c4f09a --- ws/mod.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ws/mod.ts b/ws/mod.ts index 2ae6cabda3..86ab2f045d 100644 --- a/ws/mod.ts +++ b/ws/mod.ts @@ -423,6 +423,7 @@ async function handshake( headers.set("upgrade", "websocket"); headers.set("connection", "upgrade"); headers.set("sec-websocket-key", key); + headers.set("sec-websocket-version", "13"); let headerStr = `GET ${pathname}?${searchParams || ""} HTTP/1.1\r\n`; for (const [key, value] of headers) {