diff options
| author | spl3g <spleefer6@yandex.ru> | 2025-03-22 11:17:40 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-03-22 11:18:20 +0300 |
| commit | ab23f9bdc4e14f2643c2eb446f29716054d97deb (patch) | |
| tree | f073a34e95f8084956d9946dd51c4d06f8ac7ce3 | |
| parent | 30f20deb48f690767d7a1222b362d415835150a1 (diff) | |
Set the req.ctx after filling it with global_ctx
| -rw-r--r-- | lib/http.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |
