Author: ron.sigal(a)jboss.com
Date: 2009-08-27 00:33:11 -0400 (Thu, 27 Aug 2009)
New Revision: 5396
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/servlet/ServletServerInvoker.java
Log:
JBREM-1145: Fixed derivation of useRemotingContentType value.
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/servlet/ServletServerInvoker.java
===================================================================
---
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/servlet/ServletServerInvoker.java 2009-08-27
04:31:25 UTC (rev 5395)
+++
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/servlet/ServletServerInvoker.java 2009-08-27
04:33:11 UTC (rev 5396)
@@ -110,11 +110,11 @@
}
val = configuration.get(HTTPMetadataConstants.USE_REMOTING_CONTENT_TYPE);
- if (val != null && val instanceof String)
+ if (val instanceof String)
{
useRemotingContentType = Boolean.valueOf((String) val).booleanValue();
}
- else
+ else if (val != null)
{
log.warn(HTTPMetadataConstants.USE_REMOTING_CONTENT_TYPE + " value should
be a String: " + val);
}
Show replies by date