Skip to content

Commit

Permalink
ws: Add sec-websocket-version to handshake header (denoland/std#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
hashrock authored and ry committed May 30, 2019
1 parent 2487c45 commit aacf92e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ws/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit aacf92e

Please sign in to comment.