Skip to content

Commit

Permalink
extra check for 200 and 204 so we dont spam console
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Sep 30, 2023
1 parent 4ab00aa commit 17c17da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/wsclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ bool websocket_client::handle_buffer(std::string &buffer)
} else if (status.size() < 3) {
log(ll_warning, "Malformed HTTP response on websocket");
return false;
} else {
} else if (status[1] != "200" && status[1] != "204") {
log(ll_warning, "Received unhandled code: " + status[1]);
return false;
}
Expand Down

0 comments on commit 17c17da

Please sign in to comment.