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:
parent
b936a5166d
commit
46c77b83b1
|
@ -66,7 +66,7 @@ class OpensearchAction extends Action
|
||||||
$type = 'noticesearch';
|
$type = 'noticesearch';
|
||||||
$short_name = _('Notice Search');
|
$short_name = _('Notice Search');
|
||||||
}
|
}
|
||||||
header('Content-Type: text/html');
|
header('Content-Type: application/opensearchdescription+xml');
|
||||||
$this->startXML();
|
$this->startXML();
|
||||||
$this->elementStart('OpenSearchDescription', array('xmlns' => 'http://a9.com/-/spec/opensearch/1.1/'));
|
$this->elementStart('OpenSearchDescription', array('xmlns' => 'http://a9.com/-/spec/opensearch/1.1/'));
|
||||||
$short_name = common_config('site', 'name').' '.$short_name;
|
$short_name = common_config('site', 'name').' '.$short_name;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user