From f4d32ce48b53fe62331d5ad37a239e9a03705288 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 2 Sep 2009 08:05:47 +0000 Subject: [PATCH] Fix for r53194: 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. --- 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 51d32fc720..b34ed3aaff 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/xsl" ?>' ); + $this->printText( 'escapeLocalURL( 'action=raw' ) . '" type="text/xml" ?>' ); } public function getAllowedParams() { -- 2.20.1