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'"
This commit is contained in:
chx 2012-08-03 21:27:14 +03:00
parent be41ca353b
commit b00ea41769

View File

@ -76,7 +76,7 @@ class StreamedResponse extends Response
*/ */
public function prepare(Request $request) 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'); $this->setProtocolVersion('1.1');
} }