From 9088b00006d869de7a5f9515c70a562d87af271e Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Fri, 12 May 2023 18:57:55 -0300 Subject: [PATCH] Fix keep-alive --- examples/http-reverse-proxy/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/http-reverse-proxy/main.c b/examples/http-reverse-proxy/main.c index 0d02deef..7074bdf5 100644 --- a/examples/http-reverse-proxy/main.c +++ b/examples/http-reverse-proxy/main.c @@ -64,6 +64,7 @@ static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) { } c->fn_data = c2; forward_request(hm, c2); + c->is_resp = 0; // process further msgs in keep-alive connection c2->is_hexdumping = 1; } } else if (ev == MG_EV_CLOSE) {