[jboss-remoting-commits] JBoss Remoting SVN: r6409 - 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:42:22 EST 2011
Author: ron.sigal at jboss.com
Date: 2011-11-22 12:42:22 -0500 (Tue, 22 Nov 2011)
New Revision: 6409
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/web/WebUtil.java
Log:
JBREM-1301: Tests for prefix of content-type instead of equality.
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:41:20 UTC (rev 6408)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/web/WebUtil.java 2011-11-22 17:42:22 UTC (rev 6409)
@@ -36,7 +36,7 @@
public static boolean isBinary(String requestContentType)
{
- if(BINARY.equalsIgnoreCase(requestContentType))
+ if (requestContentType != null && requestContentType.startsWith(BINARY))
{
return true;
}
More information about the jboss-remoting-commits
mailing list