From: brion Date: Sun, 16 Aug 2009 18:56:22 +0000 (-0700) Subject: Fix bug bug 1563 "opensearch content type incorrectly set" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=46c77b83b1b10663ac80f6e1df604d529bb31dd4;p=quix0rs-gnu-social.git Fix bug bug 1563 "opensearch content type incorrectly set" http://laconi.ca/trac/ticket/1563 OpenSearch description info is now sent with correct Content-Type: application/opensearchdescription+xml instead of text/html. --- diff --git a/actions/opensearch.php b/actions/opensearch.php index 4fe95c93b5..6044568f11 100644 --- a/actions/opensearch.php +++ b/actions/opensearch.php @@ -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;