| @@ 307-313 (lines=7) @@ | ||
| 304 | } else { |
|
| 305 | $this->contentLength = -1; |
|
| 306 | } |
|
| 307 | if (isset($this->headers['HTTP_TRANSFER_ENCODING'])) { |
|
| 308 | $e = explode(', ', strtolower($this->headers['HTTP_TRANSFER_ENCODING'])); |
|
| 309 | $this->chunked = in_array('chunked', $e, true); |
|
| 310 | } else { |
|
| 311 | $this->chunked = false; |
|
| 312 | } |
|
| 313 | if (isset($this->headers['HTTP_CONNECTION'])) { |
|
| 314 | $e = explode(', ', strtolower($this->headers['HTTP_CONNECTION'])); |
|
| 315 | $this->keepalive = in_array('keep-alive', $e, true); |
|
| 316 | } |
|
| @@ 313-316 (lines=4) @@ | ||
| 310 | } else { |
|
| 311 | $this->chunked = false; |
|
| 312 | } |
|
| 313 | if (isset($this->headers['HTTP_CONNECTION'])) { |
|
| 314 | $e = explode(', ', strtolower($this->headers['HTTP_CONNECTION'])); |
|
| 315 | $this->keepalive = in_array('keep-alive', $e, true); |
|
| 316 | } |
|
| 317 | if (isset($this->headers['HTTP_CONTENT_TYPE'])) { |
|
| 318 | parse_str('type=' . strtr($this->headers['HTTP_CONTENT_TYPE'], [';' => '&', ' ' => '']), $p); |
|
| 319 | $this->contentType = $p['type']; |
|