projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
vendor
/
symfony
/
http-foundation
/
RedirectResponse.php
diff --git
a/vendor/symfony/http-foundation/RedirectResponse.php
b/vendor/symfony/http-foundation/RedirectResponse.php
index 5a775ad159f3a89b7900bb8ec13df4fac8b2a0d0..01681dcdf787a1314c716bd6051b1cfc0f69c954 100644
(file)
--- a/
vendor/symfony/http-foundation/RedirectResponse.php
+++ b/
vendor/symfony/http-foundation/RedirectResponse.php
@@
-41,10
+41,20
@@
class RedirectResponse extends Response
if (!$this->isRedirect()) {
throw new \InvalidArgumentException(sprintf('The HTTP status code is not a redirect ("%s" given).', $status));
}
if (!$this->isRedirect()) {
throw new \InvalidArgumentException(sprintf('The HTTP status code is not a redirect ("%s" given).', $status));
}
+
+ if (301 == $status && !array_key_exists('cache-control', $headers)) {
+ $this->headers->remove('cache-control');
+ }
}
/**
}
/**
- * {@inheritdoc}
+ * Factory method for chainability.
+ *
+ * @param string $url The url to redirect to
+ * @param int $status The response status code
+ * @param array $headers An array of response headers
+ *
+ * @return static
*/
public static function create($url = '', $status = 302, $headers = array())
{
*/
public static function create($url = '', $status = 302, $headers = array())
{
@@
-83,7
+93,7
@@
class RedirectResponse extends Response
<html>
<head>
<meta charset="UTF-8" />
<html>
<head>
<meta charset="UTF-8" />
- <meta http-equiv="refresh" content="
1
;url=%1$s" />
+ <meta http-equiv="refresh" content="
0
;url=%1$s" />
<title>Redirecting to %1$s</title>
</head>
<title>Redirecting to %1$s</title>
</head>