8000 StreamedResponse always sends a HTTP 1.1 response · sun/symfony@b00ea41 · GitHub
[go: up one dir, main page]

Skip to content

Commit b00ea41

Browse files
committed
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'"
1 parent be41ca3 commit b00ea41

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