public function send() { if (\false === $this->hasHeader('Content-Type')) { $this->addHeader('Content-Type', 'text/html; charset=utf8'); } return parent::send(); }
public function send() { $this->removeHeader('Content-Type'); $this->addHeader('Content-Type', 'application/json'); $this->setBody(json_encode($this->body)); return parent::send(); }