You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2009/02/13 21:45:56 UTC

svn commit: r744237 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java

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;