Skip to content

Commit

Permalink
Fixup for read improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Jul 11, 2017
1 parent 232afa2 commit 3790b2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http/vibe/http/websockets.d
Expand Up @@ -944,7 +944,8 @@ private struct Frame {
ubyte[8] data;

stream.read(data[0 .. 2]);
frame.fin_rsv_opcode = data[0];
frame.fin = (data[0] & 0x80) != 0;
frame.opcode = cast(FrameOpcode)(data[0] & 0x0F);

bool masked = !!(data[1] & 0b1000_0000);

Expand Down

0 comments on commit 3790b2b

Please sign in to comment.