Unverified Commit 4f24f8bf authored by Samir Halilčević's avatar Samir Halilčević Committed by GitHub

Integrate review feedback

Co-authored-by: default avatarDominik Charousset <dominik@charousset.de>
parent 2239e1ec
......@@ -59,8 +59,7 @@ struct CAF_NET_EXPORT rfc6455 {
static ptrdiff_t decode_header(const_byte_span data, header& hdr);
static constexpr bool is_control_frame(uint8_t opcode) noexcept {
return opcode != text_frame && opcode != binary_frame
&& opcode != continuation_frame;
return opcode > binary_frame;
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment