comparison vendor/symfony/http-foundation/RedirectResponse.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
40 40
41 if (!$this->isRedirect()) { 41 if (!$this->isRedirect()) {
42 throw new \InvalidArgumentException(sprintf('The HTTP status code is not a redirect ("%s" given).', $status)); 42 throw new \InvalidArgumentException(sprintf('The HTTP status code is not a redirect ("%s" given).', $status));
43 } 43 }
44 44
45 if (301 == $status && !array_key_exists('cache-control', $headers)) { 45 if (301 == $status && !\array_key_exists('cache-control', $headers)) {
46 $this->headers->remove('cache-control'); 46 $this->headers->remove('cache-control');
47 } 47 }
48 } 48 }
49 49
50 /** 50 /**