changes
This commit is contained in:
parent
fe0b4b287d
commit
2f66c97806
|
@ -205,7 +205,10 @@ public static function download($path, $name = null, $headers = array())
|
||||||
*/
|
*/
|
||||||
public static function prepare($response)
|
public static function prepare($response)
|
||||||
{
|
{
|
||||||
if ( ! $response instanceof Response) $response = new static($response);
|
if ( ! $response instanceof Response)
|
||||||
|
{
|
||||||
|
$response = new static($response);
|
||||||
|
}
|
||||||
|
|
||||||
// We'll need to force the response to be a string before closing the session,
|
// We'll need to force the response to be a string before closing the session,
|
||||||
// since the developer may be using the session within a view, and we can't
|
// since the developer may be using the session within a view, and we can't
|
||||||
|
|
Loading…
Reference in New Issue