Migrate API\error tests and fix ApiResponse for RSS/atom

This commit is contained in:
Philipp 2021-11-12 22:29:58 +01:00
parent 23939cd0f1
commit 7797c3a0a8
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
3 changed files with 93 additions and 112 deletions

View file

@ -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;
}