per suggestion on solr-user, added a mime-mapping for .xsl files to the web.xml so that the mime-type will be set correctly even if the servlet container doesn't have one configured. used application/xslt+xml instead of application/xml based on W3C XSLT recommendation since 2003/May ... tested in Firefox2 and IE6

git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@485856 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2006-12-11 20:30:02 +00:00
parent 2b82b8abc9
commit d06948412d
2 changed files with 8 additions and 0 deletions

View File

@ -170,5 +170,7 @@ Other Changes
12. Added new numeric build property "specversion" to allow clean 12. Added new numeric build property "specversion" to allow clean
MANIFEST.MF files (hossman) MANIFEST.MF files (hossman)
13. Added Solr/Lucene versions to "Info" page (hossman) 13. Added Solr/Lucene versions to "Info" page (hossman)
14. Explicitly set mime-type of .xsl files in web.xml to
application/xslt+xml (hossman)
2006/01/17 Solr open sourced, moves to Apache Incubator 2006/01/17 Solr open sourced, moves to Apache Incubator

View File

@ -67,4 +67,10 @@
<url-pattern>/admin/ping</url-pattern> <url-pattern>/admin/ping</url-pattern>
</servlet-mapping> </servlet-mapping>
<mime-mapping>
<extension>.xsl</extension>
<!-- per http://www.w3.org/TR/2006/PR-xslt20-20061121/ -->
<mime-type>application/xslt+xml</mime-type>
</mime-mapping>
</web-app> </web-app>