]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/opensearch.php
Fix bug bug 1563 "opensearch content type incorrectly set"
[quix0rs-gnu-social.git] / actions / opensearch.php
index 4fe95c93b5cf318443d1c663638e1bb525021c61..6044568f11042a941bad47be331287a7839bb18b 100644 (file)
@@ -66,7 +66,7 @@ class OpensearchAction extends Action
             $type       = 'noticesearch';
             $short_name = _('Notice Search');
         }
-        header('Content-Type: text/html');
+        header('Content-Type: application/opensearchdescription+xml');
         $this->startXML();
         $this->elementStart('OpenSearchDescription', array('xmlns' => 'http://a9.com/-/spec/opensearch/1.1/'));
         $short_name =  common_config('site', 'name').' '.$short_name;