From 7c5c282c01c285c8956d32109d993c5cecd85160 Mon Sep 17 00:00:00 2001 From: Robert Landers Date: Sun, 11 Aug 2024 11:31:29 +0200 Subject: [PATCH] appears to affect workers too --- frankenphp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frankenphp.c b/frankenphp.c index 53e4ba55e..d09c1a8e5 100644 --- a/frankenphp.c +++ b/frankenphp.c @@ -451,13 +451,13 @@ int frankenphp_update_server_context( ctx->finished = false; SG(server_context) = ctx; - - // It is not reset by zend engine, set it to 200. - SG(sapi_headers).http_response_code = 200; } else { ctx = (frankenphp_server_context *)SG(server_context); } + // It is not reset by zend engine, set it to 200. + SG(sapi_headers).http_response_code = 200; + ctx->main_request = main_request; ctx->current_request = current_request;