From d2bf1c1338d322cf81e0c460c7ed79db5dc23253 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sat, 2 Aug 2003 18:29:30 +0000 Subject: Fixed bug #24177 (Status not set correctly after flush() in Apache 2) --- sapi/apache2handler/sapi_apache2.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sapi/apache2handler/sapi_apache2.c') diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index 8021064990..b23cb3799c 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -255,6 +255,8 @@ php_apache_sapi_flush(void *server_context) r = ctx->r; brigade = ctx->brigade; + r->status = SG(sapi_headers).http_response_code; + /* Send a flush bucket down the filter chain. */ bucket = apr_bucket_flush_create(r->connection->bucket_alloc); APR_BRIGADE_INSERT_TAIL(brigade, bucket); -- cgit v1.2.1