]> git.mxchange.org Git - friendica.git/commitdiff
set correct content-type on feeds, status.net is fussy and ignores the one declared...
authorMike Macgirvin <mike@macgirvin.com>
Thu, 14 Oct 2010 02:06:52 +0000 (19:06 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Thu, 14 Oct 2010 02:06:52 +0000 (19:06 -0700)
mod/dfrn_poll.php

index f5a7619834ab3710b1c5432ab2a72274ed80e4ba..fc663f797709d2009fca50785056060ef5dbbadc 100644 (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();