@@ -93,7 +93,8 @@ discard block |
||
93 | 93 | if (! array_key_exists('Accept-Encoding', $this->headers)) { |
94 | 94 | if (function_exists('gzinflate')) { |
95 | 95 | $encoding = 'gzip, deflate'; |
96 | - } else { |
|
96 | + } |
|
97 | + else { |
|
97 | 98 | $encoding = 'identity'; |
98 | 99 | } |
99 | 100 | $this->setHeader('Accept-Encoding', $encoding); |
@@ -110,7 +111,8 @@ discard block |
||
110 | 111 | { |
111 | 112 | if ($requestType == 'HEAD') { |
112 | 113 | $this->setHeader('Connection', 'close'); |
113 | - } else { |
|
114 | + } |
|
115 | + else { |
|
114 | 116 | $this->setHeader('Connection', 'keep-alive'); |
115 | 117 | } |
116 | 118 | } |
@@ -124,7 +126,8 @@ discard block |
||
124 | 126 | { |
125 | 127 | if (strpos($line, ':') === false) { |
126 | 128 | $this->responseCode = HttpStatus::parseStatus($line)->getCode(); |
127 | - } else { |
|
129 | + } |
|
130 | + else { |
|
128 | 131 | $line = trim($line); |
129 | 132 | list ($headerName, $headerValue) = explode(':', $line, 2); |
130 | 133 | $this->headers[$headerName] = trim($headerValue); |