From 17c17da1f9123861f09bc7eb59cd2070ef63ea11 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Sat, 30 Sep 2023 16:53:22 +0000 Subject: [PATCH] extra check for 200 and 204 so we dont spam console --- src/dpp/wsclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpp/wsclient.cpp b/src/dpp/wsclient.cpp index afeadcd576..91d1281065 100644 --- a/src/dpp/wsclient.cpp +++ b/src/dpp/wsclient.cpp @@ -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; }