webclient: make webclient_get_tunnel assert http_status

This commit is contained in:
YAMAMOTO Takashi 2022-06-02 13:43:25 +09:00 committed by Xiang Xiao
parent a696c8945e
commit a563014646

View File

@ -2430,6 +2430,7 @@ int webclient_get_tunnel(FAR struct webclient_context *ctx,
struct webclient_conn_s *conn;
_CHECK_STATE(ctx, WEBCLIENT_CONTEXT_STATE_TUNNEL_ESTABLISHED);
DEBUGASSERT(ctx->http_status / 100 == 2);
ws = ctx->ws;
DEBUGASSERT(ws != NULL);
conn = ws->conn;