composer update
This commit is contained in:
11
vendor/symfony/http-foundation/Response.php
vendored
11
vendor/symfony/http-foundation/Response.php
vendored
@@ -313,6 +313,12 @@ class Response
|
||||
|
||||
$this->ensureIEOverSSLCompatibility($request);
|
||||
|
||||
if ($request->isSecure()) {
|
||||
foreach ($headers->getCookies() as $cookie) {
|
||||
$cookie->setSecureDefault(true);
|
||||
}
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -330,8 +336,9 @@ class Response
|
||||
|
||||
// headers
|
||||
foreach ($this->headers->allPreserveCaseWithoutCookies() as $name => $values) {
|
||||
$replace = 0 === strcasecmp($name, 'Content-Type');
|
||||
foreach ($values as $value) {
|
||||
header($name.': '.$value, false, $this->statusCode);
|
||||
header($name.': '.$value, $replace, $this->statusCode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -933,7 +940,7 @@ class Response
|
||||
public function setCache(array $options)
|
||||
{
|
||||
if ($diff = array_diff(array_keys($options), array('etag', 'last_modified', 'max_age', 's_maxage', 'private', 'public', 'immutable'))) {
|
||||
throw new \InvalidArgumentException(sprintf('Response does not support the following options: "%s".', implode('", "', array_values($diff))));
|
||||
throw new \InvalidArgumentException(sprintf('Response does not support the following options: "%s".', implode('", "', $diff)));
|
||||
}
|
||||
|
||||
if (isset($options['etag'])) {
|
||||
|
Reference in New Issue
Block a user