]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix bug bug 1563 "opensearch content type incorrectly set"
authorbrion <brion@pobox.com>
Sun, 16 Aug 2009 18:56:22 +0000 (11:56 -0700)
committerCraig Andrews <candrews@integralblue.com>
Sun, 16 Aug 2009 23:46:44 +0000 (19:46 -0400)
http://laconi.ca/trac/ticket/1563

OpenSearch description info is now sent with correct Content-Type: application/opensearchdescription+xml instead of text/html.

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;