merged branch chx/master (PR #5175)
Commits -------b00ea41
StreamedResponse always sends a HTTP 1.1 response Discussion ---------- StreamedResponse always sends a HTTP 1.1 response SERVER_PROTOCOL is "Name and revision of the information protocol via which the page was requested; i.e. 'HTTP/1.0'". The condition was for 1.0 which is wrong. Earlier I filed #5173 --------------------------------------------------------------------------- by travisbot at 2012-08-03T18:33:45Z This pull request [fails](http://travis-ci.org/symfony/symfony/builds/2030496) (mergedb00ea417
intobe41ca35
). --------------------------------------------------------------------------- by chx at 2012-08-03T18:36:58Z Seems to me that the Travis fails have absolutely nothing to do with my patch.
This commit is contained in:
commit
532334d23d
@ -76,7 +76,7 @@ class StreamedResponse extends Response
|
||||
*/
|
||||
public function prepare(Request $request)
|
||||
{
|
||||
if ('1.0' != $request->server->get('SERVER_PROTOCOL')) {
|
||||
if ('HTTP 1.0' != $request->server->get('SERVER_PROTOCOL')) {
|
||||
$this->setProtocolVersion('1.1');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user