| @@ 297-303 (lines=7) @@ | ||
| 294 | } else { |
|
| 295 | $this->contentLength = -1; |
|
| 296 | } |
|
| 297 | if (isset($this->headers['HTTP_TRANSFER_ENCODING'])) { |
|
| 298 | $e = explode(', ', strtolower($this->headers['HTTP_TRANSFER_ENCODING'])); |
|
| 299 | $this->chunked = in_array('chunked', $e, true); |
|
| 300 | } else { |
|
| 301 | $this->chunked = false; |
|
| 302 | } |
|
| 303 | if (isset($this->headers['HTTP_CONNECTION'])) { |
|
| 304 | $e = explode(', ', strtolower($this->headers['HTTP_CONNECTION'])); |
|
| 305 | $this->keepalive = in_array('keep-alive', $e, true); |
|
| 306 | } |
|
| @@ 303-306 (lines=4) @@ | ||
| 300 | } else { |
|
| 301 | $this->chunked = false; |
|
| 302 | } |
|
| 303 | if (isset($this->headers['HTTP_CONNECTION'])) { |
|
| 304 | $e = explode(', ', strtolower($this->headers['HTTP_CONNECTION'])); |
|
| 305 | $this->keepalive = in_array('keep-alive', $e, true); |
|
| 306 | } |
|
| 307 | if (isset($this->headers['HTTP_CONTENT_TYPE'])) { |
|
| 308 | parse_str('type=' . strtr($this->headers['HTTP_CONTENT_TYPE'], [';' => '&', ' ' => '']), $p); |
|
| 309 | $this->contentType = $p['type']; |
|