Skip to content

Commit

Permalink
Update connection.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
helintongh committed Oct 13, 2023
1 parent 59bad74 commit 20fe21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cinatra/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ class connection : public base_connection,
}

if (req_.get_content_type() == content_type::websocket &&
!req_.set_websocket_state()) {
!req_.get_websocket_state()) {
req_.set_websocket_state(true);
std::string close_reason = "server close\n";
std::string close_msg = ws_.format_close_payload(
Expand Down

0 comments on commit 20fe21f

Please sign in to comment.