Commit 904c32eb by Qiang Xue

Merge pull request #3227 from xterr/patch-1

Update Response.php
parents 3e3e4435 48635c2d
...@@ -242,7 +242,7 @@ class Response extends \yii\base\Response ...@@ -242,7 +242,7 @@ class Response extends \yii\base\Response
public function init() public function init()
{ {
if ($this->version === null) { if ($this->version === null) {
if (isset($_SERVER['SERVER_PROTOCOL']) && $_SERVER['SERVER_PROTOCOL'] === '1.0') { if (isset($_SERVER['SERVER_PROTOCOL']) && $_SERVER['SERVER_PROTOCOL'] === 'HTTP/1.0') {
$this->version = '1.0'; $this->version = '1.0';
} else { } else {
$this->version = '1.1'; $this->version = '1.1';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment