Skip to content

Commit b8d5ba8

Browse files
authored
fix(php): fix header management introduced by latest rework (#503)
1 parent f903ebd commit b8d5ba8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clients/algoliasearch-client-php/lib/RequestOptions/RequestOptionsFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ private function normalize($options)
7171
$headersToLowerCase[mb_strtolower($key)] = $v;
7272
}
7373

74-
$normalized[$optionName] = $this->format(
74+
$normalized[$optionName] += $this->format(
7575
$headersToLowerCase
7676
);
7777
} else {
78-
$normalized[$optionName] = $this->format($value);
78+
$normalized[$optionName] += $this->format($value);
7979
}
8080
} else {
81-
$normalized[$optionName] = $value;
81+
$normalized[$optionName] += $value;
8282
}
8383
}
8484

0 commit comments

Comments
 (0)