will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at

Commit ba4a8460 authored by mmn's avatar mmn

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.
parent d115f9dd
......@@ -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 '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
print $notice->asAtomEntry(true, true, true, $this->scoped);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment