Skip to content

Commit

Permalink
StreamedResponse always sends a HTTP 1.1 response
Browse files Browse the repository at this point in the history
SERVER_PROTOCOL is "Name and revision of the information protocol via which the page was requested; i.e. 'HTTP/1.0'"
  • Loading branch information
chx committed Aug 3, 2012
1 parent be41ca3 commit b00ea41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/StreamedResponse.php
Expand Up @@ -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');
}

Expand Down

0 comments on commit b00ea41

Please sign in to comment.