From: Mikael Nordfeldth Date: Sat, 6 May 2017 10:38:34 +0000 (+0200) Subject: Output proper HTML and XML headers for single Atom entry X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ba4a84602aa24843d17cabaa414674ca9e6a018a;p=quix0rs-gnu-social.git 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. --- 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); }