mirror of
https://github.com/friendica/friendica
synced 2025-04-22 02:30:11 +00:00
Migrate API\error tests and fix ApiResponse for RSS/atom
This commit is contained in:
parent
23939cd0f1
commit
7797c3a0a8
3 changed files with 93 additions and 112 deletions
|
@ -202,11 +202,9 @@ class ApiResponse
|
|||
break;
|
||||
case 'rss':
|
||||
$this->setHeader('Content-Type: application/rss+xml');
|
||||
$return = '<?xml version="1.0" encoding="UTF-8"?>' . "\n" . $return;
|
||||
break;
|
||||
case 'atom':
|
||||
$this->setHeader('Content-Type: application/atom+xml');
|
||||
$return = '<?xml version="1.0" encoding="UTF-8"?>' . "\n" . $return;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue