mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-27 21:33:18 +02:00
Formats: Remove display & related method (#2776)
Format should not be responsible for sending HTTP response.
This commit is contained in:
@ -21,12 +21,4 @@ class PlaintextFormat extends FormatAbstract {
|
||||
$toReturn = mb_convert_encoding($toReturn, $this->getCharset(), 'UTF-8');
|
||||
return $toReturn;
|
||||
}
|
||||
|
||||
public function display(){
|
||||
$this
|
||||
->setContentType(self::MIME_TYPE . '; charset=' . $this->getCharset())
|
||||
->callContentType();
|
||||
|
||||
return parent::display();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user