protected fixHeaders ( ) |
protected function fixHeaders()
{
if (count($this->immediateChildren)) {
$this->setHeaderParameter('Content-Type', 'boundary', $this->getBoundary());
$this->headers->remove('Content-Transfer-Encoding');
} else {
$this->setHeaderParameter('Content-Type', 'boundary', null);
$this->setEncoding($this->encoder->getName());
}
}
/** Fix the content-type and encoding of this entity */ protected function fixHeaders() { parent::fixHeaders(); if (count($this->getChildren())) { $this->setHeaderParameter('Content-Type', 'charset', null); $this->setHeaderParameter('Content-Type', 'format', null); $this->setHeaderParameter('Content-Type', 'delsp', null); } else { $this->setCharset($this->userCharset); $this->setFormat($this->userFormat); $this->setDelSp($this->userDelSp); } }