Skip to content
Browse files

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) (merged b00ea41 into be41ca3).

---------------------------------------------------------------------------

by chx at 2012-08-03T18:36:58Z

Seems to me that the Travis fails have absolutely nothing to do with my patch.
  • Loading branch information...
2 parents be41ca3 + b00ea41 commit 532334d23dd196a42df48da1ff439549b608cfc1 @fabpot fabpot committed Aug 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Component/HttpFoundation/StreamedResponse.php
View
2 src/Symfony/Component/HttpFoundation/StreamedResponse.php
@@ -76,7 +76,7 @@ public function setCallback($callback)
*/
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');
}

0 comments on commit 532334d

Please sign in to comment.
Something went wrong with that request. Please try again.