From b8d5ba86ad9b4eb8fff03c41756f1b6079a92926 Mon Sep 17 00:00:00 2001 From: Damien Couchez Date: Fri, 13 May 2022 17:00:48 +0200 Subject: [PATCH] fix(php): fix header management introduced by latest rework (#503) --- .../lib/RequestOptions/RequestOptionsFactory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/algoliasearch-client-php/lib/RequestOptions/RequestOptionsFactory.php b/clients/algoliasearch-client-php/lib/RequestOptions/RequestOptionsFactory.php index 0966b25c43..133fbae4a4 100644 --- a/clients/algoliasearch-client-php/lib/RequestOptions/RequestOptionsFactory.php +++ b/clients/algoliasearch-client-php/lib/RequestOptions/RequestOptionsFactory.php @@ -71,14 +71,14 @@ private function normalize($options) $headersToLowerCase[mb_strtolower($key)] = $v; } - $normalized[$optionName] = $this->format( + $normalized[$optionName] += $this->format( $headersToLowerCase ); } else { - $normalized[$optionName] = $this->format($value); + $normalized[$optionName] += $this->format($value); } } else { - $normalized[$optionName] = $value; + $normalized[$optionName] += $value; } }