cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject cvs commit: cocoon-2.0/src/java/org/apache/cocoon/util MIMEUtils.java
Date Fri, 30 May 2003 15:30:22 GMT
crossley    2003/05/30 08:30:22

  Modified:    src/java/org/apache/cocoon/util MIMEUtils.java
  Log:
  Added some mime-types: text/javascript and text/vbscript
  PR: 20299
  Submitted by: torstenknodt.AT.datas-world.de (Torsten Knodt)
  
  Revision  Changes    Path
  1.2       +5 -1      cocoon-2.0/src/java/org/apache/cocoon/util/MIMEUtils.java
  
  Index: MIMEUtils.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.0/src/java/org/apache/cocoon/util/MIMEUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MIMEUtils.java	9 Mar 2003 00:03:27 -0000	1.1
  +++ MIMEUtils.java	30 May 2003 15:30:22 -0000	1.2
  @@ -110,6 +110,10 @@
               return ".mid";
           } else if ("audio/mpeg".equals(type)) {
               return ".mp3";
  +        } else if ("text/javascript".equals(type)) {
  +            return ".js";
  +        } else if ("text/vbscript".equals(type)) {
  +            return ".vbs";
           } else if ("text/x-vcard".equals(type)) {
               return ".vcf";
           } else if ("text/rdf".equals(type)) {
  
  
  

Mime
View raw message