Updated Symfony HttpFoundation to 2.1.6.
This commit is contained in:
@@ -72,21 +72,17 @@ class StreamedResponse extends Response
|
||||
}
|
||||
|
||||
/**
|
||||
* @{inheritdoc}
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function prepare(Request $request)
|
||||
{
|
||||
if ('1.0' != $request->server->get('SERVER_PROTOCOL')) {
|
||||
$this->setProtocolVersion('1.1');
|
||||
}
|
||||
|
||||
$this->headers->set('Cache-Control', 'no-cache');
|
||||
|
||||
parent::prepare($request);
|
||||
return parent::prepare($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* @{inheritdoc}
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* This method only sends the content once.
|
||||
*/
|
||||
@@ -106,7 +102,7 @@ class StreamedResponse extends Response
|
||||
}
|
||||
|
||||
/**
|
||||
* @{inheritdoc}
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @throws \LogicException when the content is not null
|
||||
*/
|
||||
@@ -118,7 +114,7 @@ class StreamedResponse extends Response
|
||||
}
|
||||
|
||||
/**
|
||||
* @{inheritdoc}
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @return false
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user