symfony/symfony — pull request #12179 by banderon1 (2014-10-08 18:49:41+00:00)
Title: fix 'Undefined Property' error for charset in HttpFoundation/Response.php

This fixes an issue of getting a 500 response due to an undefined property (charset).

The error message I was receiving follows:

```
500 json.message:"exception 'ErrorException' with message 'Undefined property

Illuminate\Http\Response::$charset' in /var/app/current/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php:285

Stack trace:#0 /var/app/current/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php(285)

Illuminate\Exception\Handler->handleError(8, 'Undefined prope...', '/var/app/curren...', 285, Array)#1 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1501)

Symfony\Component\HttpFoundation\Response->prepare(Object(Illuminate\Http\Request))#2 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1031)

Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))#3 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Router.php(996)

Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))#4 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(777)

Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))#5 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(747)

Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))#6 /var/app/current/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72)

Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)#7 /var/app/current/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47)

Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)#8 /var/app/current/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51)

Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)#9 /var/app/current/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23)

Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)#10 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(643)

Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))#11 /var/app/current/public/index.php(49)

Illuminate\Foundation\Application->run()#12 {main}"
```