In SDK v2.6.1, commenting out the following code in websocket.c
allows successful connection to the WebSocket. However, in SDK v2.7.0, even after commenting out the same code, I am still unable to connect to the WebSocket.
if (!(ctx->all_received && ctx->sec_accept_ok)) {
NET_DBG("[%p] WS handshake failed (%d/%d)", ctx,
ctx->all_received, ctx->sec_accept_ok);
ret = -ECONNABORTED;
goto out;
}