mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
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:
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user