Lines Matching refs:headers
53 * This is used since we can't always trust Content-Type headers, and is based
88 if (isset($this->file->headers['content-type'])) {
89 if (!isset($this->file->headers['content-encoding'])
90 && ($this->file->headers['content-type'] === 'text/plain'
91 || $this->file->headers['content-type'] === 'text/plain; charset=ISO-8859-1'
92 || $this->file->headers['content-type'] === 'text/plain; charset=iso-8859-1'
93 || $this->file->headers['content-type'] === 'text/plain; charset=UTF-8')) {
97 if (($pos = strpos($this->file->headers['content-type'], ';')) !== false) {
98 $official = substr($this->file->headers['content-type'], 0, $pos);
100 $official = $this->file->headers['content-type'];