Skip to content

Commit

Permalink
Add debug message to clarify websocket header failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 authored and mikee47 committed Mar 25, 2024
1 parent b833ffb commit e0bf04b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sming/Components/Network/src/Network/WebsocketClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ bool WebsocketClient::connect(const Url& url)
int WebsocketClient::verifyKey(HttpConnection& connection, HttpResponse& response)
{
if(!response.headers.contains(HTTP_HEADER_SEC_WEBSOCKET_ACCEPT)) {
debug_e("[WS] Websocket Accept missing from headers");
state = eWSCS_Closed;
return -2; // we don't have response.
}
Expand Down

0 comments on commit e0bf04b

Please sign in to comment.