Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/http-foundation/RedirectResponse.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
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 /** |