From ba4a84602aa24843d17cabaa414674ca9e6a018a Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 6 May 2017 12:38:34 +0200 Subject: [PATCH 1/1] Output proper HTML and XML headers for single Atom entry RFC5023 specifies that the content type parameter 'type=entry' should be used to clarify data. --- lib/apiaction.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/apiaction.php b/lib/apiaction.php index 723e589408..18ec44bb2b 100644 --- a/lib/apiaction.php +++ b/lib/apiaction.php @@ -790,7 +790,8 @@ class ApiAction extends Action function showSingleAtomStatus($notice) { - header('Content-Type: application/atom+xml; charset=utf-8'); + header('Content-Type: application/atom+xml;type=entry;charset="utf-8"'); + print '' . "\n"; print $notice->asAtomEntry(true, true, true, $this->scoped); } -- 2.39.2