8000 merged branch chx/master (PR #5175) · symfony/symfony@532334d · GitHub
[go: up one dir, main page]

Skip to content

Commit 532334d

Browse files
committed
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.
2 parents be41ca3 + b00ea41 commit 532334d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/StreamedResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function setCallback($callback)
7676
*/
7777
public function prepare(Request $request)
7878
{
79-
if ('1.0' != $request->server->get('SERVER_PROTOCOL')) {
79+
if ('HTTP 1.0' != $request->server->get('SERVER_PROTOCOL')) {
8080
$this->setProtocolVersion('1.1');
8181
}
8282

0 commit comments

Comments
 (0)
0