diff options
author | brion <brion@pobox.com> | 2009-08-16 11:56:22 -0700 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-08-16 19:46:44 -0400 |
commit | 46c77b83b1b10663ac80f6e1df604d529bb31dd4 (patch) | |
tree | fd2fdab41090914e862eedf36fccde92dc297d5b /actions | |
parent | b936a5166d825239b269bf9ee9ea5627f452a188 (diff) |
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.
Diffstat (limited to 'actions')
-rw-r--r-- | actions/opensearch.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/opensearch.php b/actions/opensearch.php index 4fe95c93b..6044568f1 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; |