]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apitimelinehome.php
ActivityStreamJSONDocument served as application/stream+json
[quix0rs-gnu-social.git] / actions / apitimelinehome.php
index 3c18a5b0bf195d35f396c8551efa623f8055cfa0..56f0e66d0433f2eb436f4a84413546521e40bcec 100644 (file)
@@ -169,7 +169,7 @@ class ApiTimelineHomeAction extends ApiBareAuthAction
             $this->showJsonTimeline($this->notices);
             break;
         case 'as':
-            header('Content-Type: application/json; charset=utf-8');
+            header('Content-Type: ' . ActivityStreamJSONDocument::CONTENT_TYPE);
             $doc = new ActivityStreamJSONDocument($this->auth_user);
             $doc->setTitle($title);
             $doc->addLink($link, 'alternate', 'text/html');