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.
This commit is contained in:
brion 2009-08-16 11:56:22 -07:00 committed by Craig Andrews
parent b936a5166d
commit 46c77b83b1

View 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;