Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes
This commit is contained in:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
8
vendor/symfony/http-foundation/HeaderBag.php
vendored
8
vendor/symfony/http-foundation/HeaderBag.php
vendored
|
@ -111,7 +111,7 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||
*/
|
||||
public function get($key, $default = null, $first = true)
|
||||
{
|
||||
$key = strtr(strtolower($key), '_', '-');
|
||||
$key = str_replace('_', '-', strtolower($key));
|
||||
|
||||
if (!array_key_exists($key, $this->headers)) {
|
||||
if (null === $default) {
|
||||
|
@ -137,7 +137,7 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||
*/
|
||||
public function set($key, $values, $replace = true)
|
||||
{
|
||||
$key = strtr(strtolower($key), '_', '-');
|
||||
$key = str_replace('_', '-', strtolower($key));
|
||||
|
||||
$values = array_values((array) $values);
|
||||
|
||||
|
@ -161,7 +161,7 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||
*/
|
||||
public function has($key)
|
||||
{
|
||||
return array_key_exists(strtr(strtolower($key), '_', '-'), $this->headers);
|
||||
return array_key_exists(str_replace('_', '-', strtolower($key)), $this->headers);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -184,7 +184,7 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||
*/
|
||||
public function remove($key)
|
||||
{
|
||||
$key = strtr(strtolower($key), '_', '-');
|
||||
$key = str_replace('_', '-', strtolower($key));
|
||||
|
||||
unset($this->headers[$key]);
|
||||
|
||||
|
|
Reference in a new issue