1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-10 16:11:13 -05:00
denoland-deno/ext
Ben Noordhuis 16ea39ee48
fix(ext/http): fortify "is websocket?" check (#12179)
Check for expected headers more rigorously and check that it's a
HTTP/1.1 GET request. The logic mirrors what Deno Deploy and the
tungstenite crate do.

The presence of "Sec-Websocket-Version: 13" is now also enforced.
I don't expect that to break anything: conforming clients already
send it and tungstenite can't talk to older clients anyway.

The new code is more efficient due to heap-allocating less and aligns
more closely with the checks in ext/http/01_http.js now.
2021-09-25 10:02:26 +02:00
..
broadcast_channel chore: bump crate versions for 1.14.1 (#12172) 2021-09-22 06:53:47 +10:00
console chore: bump crate versions for 1.14.1 (#12172) 2021-09-22 06:53:47 +10:00
crypto fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851) 2021-09-25 02:07:22 +09:00
fetch fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851) 2021-09-25 02:07:22 +09:00
ffi chore: bump crate versions for 1.14.1 (#12172) 2021-09-22 06:53:47 +10:00
http fix(ext/http): fortify "is websocket?" check (#12179) 2021-09-25 10:02:26 +02:00
net chore(ext/net): improve embedder friendliness (#12178) 2021-09-22 11:12:08 +02:00
timers fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851) 2021-09-25 02:07:22 +09:00
tls chore: bump crate versions for 1.14.1 (#12172) 2021-09-22 06:53:47 +10:00
url fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851) 2021-09-25 02:07:22 +09:00
web fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851) 2021-09-25 02:07:22 +09:00
webgpu chore: bump crate versions for 1.14.1 (#12172) 2021-09-22 06:53:47 +10:00
webidl fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851) 2021-09-25 02:07:22 +09:00
websocket chore(ext/net): improve embedder friendliness (#12178) 2021-09-22 11:12:08 +02:00
webstorage chore: bump crate versions for 1.14.1 (#12172) 2021-09-22 06:53:47 +10:00