diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-01-24 13:14:03 -0500 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-01-24 13:33:51 -0500 |
| commit | 73d5d7c680d3973b8ca8c9eaf535918790757ee9 (patch) | |
| tree | d4d13847d57b723cbd1e54a4a28946bf4e12caf5 /ws/mod.ts | |
| parent | 441bc0982b1ff9c363a1e767d0a9ef7a35e6518c (diff) | |
format
Original: https://github.com/denoland/deno_std/commit/f911eca8d124d8b992b4b8171ad38a4d674469e3
Diffstat (limited to 'ws/mod.ts')
| -rw-r--r-- | ws/mod.ts | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -246,10 +246,7 @@ export async function writeFrame(frame: WebSocketFrame, writer: Writer) { let header: Uint8Array; const hasMask = frame.mask ? 0x80 : 0; if (payloadLength < 126) { - header = new Uint8Array([ - 0x80 | frame.opcode, - hasMask | payloadLength - ]); + header = new Uint8Array([0x80 | frame.opcode, hasMask | payloadLength]); } else if (payloadLength < 0xffff) { header = new Uint8Array([ 0x80 | frame.opcode, |
