[jboss-remoting-commits] JBoss Remoting SVN: r6412 - remoting2/branches/2.x/src/main/org/jboss/remoting/transport/web.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Tue Nov 22 12:55:59 EST 2011


Author: ron.sigal at jboss.com
Date: 2011-11-22 12:55:58 -0500 (Tue, 22 Nov 2011)
New Revision: 6412

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/transport/web/WebUtil.java
Log:
JBREM-1301: Convert content-type to lower case before comparison.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/transport/web/WebUtil.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/transport/web/WebUtil.java	2011-11-22 17:54:53 UTC (rev 6411)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/web/WebUtil.java	2011-11-22 17:55:58 UTC (rev 6412)
@@ -36,7 +36,7 @@
 
    public static boolean isBinary(String requestContentType)
    {
-      if (requestContentType != null && requestContentType.startsWith(BINARY))
+      if (requestContentType != null && requestContentType.toLowerCase().startsWith(BINARY))
       {
          return true;
       }



More information about the jboss-remoting-commits mailing list