1
0
Fork 0

set correct content-type on feeds, status.net is fussy and ignores the one declared in the xrd

This commit is contained in:
Mike Macgirvin 2010-10-13 19:06:52 -07:00
parent 957827bda7
commit bf77043b51

View file

@ -27,6 +27,7 @@ function dfrn_poll_init(&$a) {
}
if(($dfrn_id === '') && (! x($_POST,'dfrn_id')) && ($a->argc > 1)) {
header("Content-type: application/atom+xml");
$o = get_feed_for($a, '*', $a->argv[1],$last_update);
echo $o;
killme();
@ -203,6 +204,7 @@ function dfrn_poll_post(&$a) {
// NOTREACHED
}
else {
header("Content-type: application/atom+xml");
$o = get_feed_for($a,$dfrn_id, $a->argv[1], $last_update, $direction);
echo $o;
killme();