From d555e90cea525306f3c0afd52c11e3309dac4dbd Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 15 Feb 2010 21:34:31 +0000 Subject: [PATCH] Fix broken comma logic in r62486 --- includes/api/ApiMain.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index ac782b34b5..3a2602e673 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -317,11 +317,12 @@ class ApiMain extends ApiBase { if ( is_bool( $value ) ) { if ( $value ) { $ccHeader .= $separator . $name; + $separator = ', '; } } else { $ccHeader .= $separator . "$name=$value"; + $separator = ', '; } - $separator = ', '; } header( "Cache-Control: $ccHeader" ); -- 2.20.1