You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wookie.apache.org by sc...@apache.org on 2009/10/22 13:23:57 UTC
svn commit: r828660 -
/incubator/wookie/branches/standalone/src/org/apache/wookie/server/MainFilter.java
Author: scottbw
Date: Thu Oct 22 11:23:57 2009
New Revision: 828660
URL: http://svn.apache.org/viewvc?rev=828660&view=rev
Log:
For WOOKIE-26 - this fixes a problem whereby all files are served as "text/xml" including CSS, JS etc when using Jetty
Modified:
incubator/wookie/branches/standalone/src/org/apache/wookie/server/MainFilter.java
Modified: incubator/wookie/branches/standalone/src/org/apache/wookie/server/MainFilter.java
URL: http://svn.apache.org/viewvc/incubator/wookie/branches/standalone/src/org/apache/wookie/server/MainFilter.java?rev=828660&r1=828659&r2=828660&view=diff
==============================================================================
--- incubator/wookie/branches/standalone/src/org/apache/wookie/server/MainFilter.java (original)
+++ incubator/wookie/branches/standalone/src/org/apache/wookie/server/MainFilter.java Thu Oct 22 11:23:57 2009
@@ -43,7 +43,7 @@
public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain)
throws IOException, ServletException {
request.setCharacterEncoding("UTF-8");
- response.setContentType("text/xml;charset=\"UTF-8\"");
+ //response.setContentType("text/xml;charset=\"UTF-8\""); << screws up CSS and JS!
/** Get a DBManager for this thread. */
final IDBManager dbManager = DBManagerFactory.getDBManager();
try {