From 1d6228b46a9440a99eca42718a5a76dcd3e0aa12 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Tue, 22 Sep 2015 15:28:53 +0800 Subject: [PATCH] Fixed bug #70279 (HTTP Authorization Header is sometimes passed to newer reqeusts) --- NEWS | 2 ++ sapi/fpm/fpm/fpm_main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index dec9a664e8..63b3da5c2d 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,8 @@ PHP NEWS - FPM: . Fixed bug #70538 ("php-fpm -i" crashes). (rainer dot jung at kippdata dot de) + . Fixed bug #70279 (HTTP Authorization Header is sometimes passed to newer + reqeusts). (Laruence) - OpenSSL . Require at least OpenSSL version 0.9.8. (Jakub Zelenka) diff --git a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c index ca478b31f3..4501e9165b 100644 --- a/sapi/fpm/fpm/fpm_main.c +++ b/sapi/fpm/fpm/fpm_main.c @@ -1514,7 +1514,7 @@ PHP_FUNCTION(fastcgi_finish_request) /* {{{ */ php_header(); fcgi_flush(request, 1); - fcgi_close(request, 0, 0); + fcgi_close(request, 0, 1); RETURN_TRUE; } -- 2.40.0