Skip to content

Commit

Permalink
fix some (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Dec 6, 2024
1 parent 86b9190 commit 9957d37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions include/cinatra/uri.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class uri_t {
case '$':
case '&':
case '\'':
case '|':
case '(':
case ')':
case '*':
Expand Down
6 changes: 3 additions & 3 deletions include/cinatra/websocket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ class websocket {
bool is_client = true) {
frame_header hdr{};
hdr.fin = eof;
hdr.rsv1 = 0;
hdr.rsv2 = 0;
if (need_compression)
hdr.rsv2 = 1;
hdr.rsv1 = 1;
else
hdr.rsv2 = 0;
hdr.rsv1 = 0;
hdr.rsv3 = 0;
hdr.opcode = static_cast<uint8_t>(op);
hdr.mask = is_client;
Expand Down

0 comments on commit 9957d37

Please sign in to comment.