portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r331569 - /portals/jetspeed-2/trunk/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java
Date Mon, 07 Nov 2005 18:44:45 GMT
Author: taylor
Date: Mon Nov  7 10:44:43 2005
New Revision: 331569

URL: http://svn.apache.org/viewcvs?rev=331569&view=rev
Log:
added zip support

Modified:
    portals/jetspeed-2/trunk/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java

Modified: portals/jetspeed-2/trunk/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java?rev=331569&r1=331568&r2=331569&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java
(original)
+++ portals/jetspeed-2/trunk/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java
Mon Nov  7 10:44:43 2005
@@ -76,6 +76,10 @@
         {
             response.setContentType("application/pdf");
         }
+        else if (path.endsWith(".zip"))
+        {
+            response.setContentType("application/zip");
+        }        
         else
         {
             response.setContentType("text/html");



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message