[xiph-commits] r19112 - icecast/trunk/icecast/web
dm8tbr at svn.xiph.org
dm8tbr at svn.xiph.org
Sun Mar 9 06:02:35 PDT 2014
Author: dm8tbr
Date: 2014-03-09 06:02:35 -0700 (Sun, 09 Mar 2014)
New Revision: 19112
Modified:
icecast/trunk/icecast/web/status-json.xsl
icecast/trunk/icecast/web/xml2json.xslt
Log:
Set content-type to official "application/json"
Modified: icecast/trunk/icecast/web/status-json.xsl
===================================================================
--- icecast/trunk/icecast/web/status-json.xsl 2014-03-09 12:59:33 UTC (rev 19111)
+++ icecast/trunk/icecast/web/status-json.xsl 2014-03-09 13:02:35 UTC (rev 19112)
@@ -1,6 +1,6 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="xml2json.xslt"/>
-<xsl:output indent="no" omit-xml-declaration="yes" method="text" encoding="UTF-8" media-type="text/javascript"/>
+<xsl:output indent="no" omit-xml-declaration="yes" method="text" encoding="UTF-8" media-type="application/json"/>
<xsl:strip-space elements="*"/>
<!-- override imported transform variable to enable output -->
Modified: icecast/trunk/icecast/web/xml2json.xslt
===================================================================
--- icecast/trunk/icecast/web/xml2json.xslt 2014-03-09 12:59:33 UTC (rev 19111)
+++ icecast/trunk/icecast/web/xml2json.xslt 2014-03-09 13:02:35 UTC (rev 19112)
@@ -25,7 +25,7 @@
THE POSSIBILITY OF SUCH DAMAGE.
-->
- <xsl:output indent="no" omit-xml-declaration="yes" method="text" encoding="UTF-8" media-type="text/x-json"/>
+ <xsl:output indent="no" omit-xml-declaration="yes" method="text" encoding="UTF-8" media-type="application/json"/>
<xsl:strip-space elements="*"/>
<!--default to no output-->
<xsl:variable name="output">false</xsl:variable>
More information about the commits
mailing list