From 1b9ef51a9596447e4a25c622eaae547ea57892ed Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 19 Aug 2021 08:56:01 +0100 Subject: [PATCH] conmon: make sure we report http specific on close --- lib/secure-streams/protocols/ss-h1.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/secure-streams/protocols/ss-h1.c b/lib/secure-streams/protocols/ss-h1.c index 9a73a6aa9..5f1c29287 100644 --- a/lib/secure-streams/protocols/ss-h1.c +++ b/lib/secure-streams/protocols/ss-h1.c @@ -505,6 +505,12 @@ secstream_h1(struct lws *wsi, enum lws_callback_reasons reason, void *user, lws_ss_assert_extant(wsi->a.context, wsi->tsi, h); #if defined(LWS_WITH_CONMON) + if (wsi->conmon.pcol == LWSCONMON_PCOL_NONE) { + wsi->conmon.pcol = LWSCONMON_PCOL_HTTP; + wsi->conmon.protocol_specific.http.response = + (int)lws_http_client_http_response(wsi); + } + lws_conmon_ss_json(h); #endif