summaryrefslogtreecommitdiff
path: root/ws/mod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ws/mod.ts')
-rw-r--r--ws/mod.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/ws/mod.ts b/ws/mod.ts
index 2ae6cabda..86ab2f045 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) {