You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2010/04/19 18:58:56 UTC
svn commit: r935668 -
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
Author: hlship
Date: Mon Apr 19 16:58:56 2010
New Revision: 935668
URL: http://svn.apache.org/viewvc?rev=935668&view=rev
Log:
TAP5-750: Tapestry should not attempt to GZip flash movies (.swf files)
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java?rev=935668&r1=935667&r2=935668&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java Mon Apr 19 16:58:56 2010
@@ -2439,9 +2439,10 @@ public final class TapestryModule
* <dd>image/jpeg</dd>
* <dt>gif</dt>
* <dd>image/gif</dd>
- * <dt>png</dtt>
+ * <dt>png</dt>
* <dd>image/png</dd>
- * <p/>
+ * <dt>swf</dt>
+ * <dd>application/x-shockwave-flash</dd>
* </dl>
*/
public void contributeResourceStreamer(MappedConfiguration<String, String> configuration)
@@ -2452,6 +2453,7 @@ public final class TapestryModule
configuration.add("jpg", "image/jpeg");
configuration.add("jpeg", "image/jpeg");
configuration.add("png", "image/png");
+ configuration.add("swf", "application/x-shockwave-flash");
}
/**
@@ -2684,9 +2686,10 @@ public final class TapestryModule
* the following content types:
* <ul>
* <li>image/jpeg</li>
- * <li>image/gif
- * <li>image/png
- * <li>application/json (see https://issues.apache.org/jira/browse/TAP5-469)
+ * <li>image/gif</li>
+ * <li>image/png</li>
+ * <li>application/json (see https://issues.apache.org/jira/browse/TAP5-469)</li>
+ * <li>application/x-shockwave-flash</li>
* </ul>
*
* @since 5.1.0.0
@@ -2697,6 +2700,7 @@ public final class TapestryModule
configuration.add("image/gif");
configuration.add("image/png");
configuration.add("application/json");
+ configuration.add("application/x-shockwave-flash");
}
/**