From 46c77b83b1b10663ac80f6e1df604d529bb31dd4 Mon Sep 17 00:00:00 2001 From: brion Date: Sun, 16 Aug 2009 11:56:22 -0700 Subject: 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. --- actions/opensearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf