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:
parent
be41ca353b
commit
b00ea41769
@ -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