Author: ron.sigal(a)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;
}
Show replies by date