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=d88e9ffd334dcf9d3a84fee5bae6d1b6c125a616;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); }