From ab23f9bdc4e14f2643c2eb446f29716054d97deb Mon Sep 17 00:00:00 2001 From: spl3g Date: Sat, 22 Mar 2025 11:17:40 +0300 Subject: Set the req.ctx after filling it with global_ctx --- lib/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/http.c b/lib/http.c index 57e2199..7861e1c 100644 --- a/lib/http.c +++ b/lib/http.c @@ -505,6 +505,7 @@ void *process_request(void *args) { for (size_t i = 0; i < serv.global_ctx.len; i++) { set_context_value(&req_arena, &req_context, *(serv.global_ctx.data + i)); } + req.ctx = &req_context; http_global_middleware *g_mid = serv.global_middleware; if (!resp.sent) { -- cgit v1.2.3