cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r744237 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
Date Fri, 13 Feb 2009 20:45:56 GMT
Author: dkulp
Date: Fri Feb 13 20:45:55 2009
New Revision: 744237

URL: http://svn.apache.org/viewvc?rev=744237&view=rev
Log:
Content-type lookup should be case insensitive

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java?rev=744237&r1=744236&r2=744237&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java Fri Feb
13 20:45:55 2009
@@ -154,6 +154,7 @@
         if (contentType == null) {
             return false;
         }
+        contentType = contentType.toLowerCase();
         for (String s : types) {
             if (contentType.indexOf(s) != -1) {
                 return true;



Mime
View raw message