From 843acd3aab7e98def3f4df383ea7dde2ae908e14 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sat, 23 Jan 2010 15:27:53 +0000 Subject: [PATCH] (bug 19528) Revert 55749: "according to the XSLT 1.0 spec, the MIME type should be text/xml or application/xml. In XSLT 2.0, it is application/xslt+xml. Either way, text/xsl is wrong." The mime type text/xsl is the only one supported by all modern browsers. --- includes/api/ApiFormatXml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiFormatXml.php b/includes/api/ApiFormatXml.php index e65a2bb643..f4342a4744 100644 --- a/includes/api/ApiFormatXml.php +++ b/includes/api/ApiFormatXml.php @@ -173,7 +173,7 @@ class ApiFormatXml extends ApiFormatBase { $this->setWarning( 'Stylesheet should have .xsl extension.' ); return; } - $this->printText( 'escapeLocalURL( 'action=raw' ) . '" type="text/xml" ?>' ); + $this->printText( 'escapeLocalURL( 'action=raw' ) . '" type="text/xsl" ?>' ); } public function getAllowedParams() { -- 2.20.1