Fix header collection from array (#18883)

* Fixed HeaderCollection::fromArray() key case

* Added CHANGELOG.md line for #18883 (Fixed HeaderCollection::fromArray() key case)
This commit is contained in:
rhertogh
2021-09-17 09:29:33 +02:00
committed by GitHub
parent 9ed87a0ad6
commit f3956a4eec
3 changed files with 29 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class HeaderCollection extends BaseObject implements \IteratorAggregate, \ArrayA
*/
public function fromArray(array $array)
{
$this->_headers = $array;
$this->_headers = array_change_key_case($array, CASE_LOWER);
}
/**