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