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 12, 2017
1 parent 56949bf commit f8bbddc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http/vibe/http/websockets.d
Original file line number Diff line number Diff line change
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 f8bbddc

Please sign in to comment.