Author: shane.bryzak(a)jboss.com
Date: 2008-04-11 23:31:32 -0400 (Fri, 11 Apr 2008)
New Revision: 7908
Modified:
branches/Seam_2_0/src/remoting/org/jboss/seam/remoting/gwt/GWTService.java
Log:
JBSEAM-2880
Modified: branches/Seam_2_0/src/remoting/org/jboss/seam/remoting/gwt/GWTService.java
===================================================================
--- branches/Seam_2_0/src/remoting/org/jboss/seam/remoting/gwt/GWTService.java 2008-04-12
03:31:14 UTC (rev 7907)
+++ branches/Seam_2_0/src/remoting/org/jboss/seam/remoting/gwt/GWTService.java 2008-04-12
03:31:32 UTC (rev 7908)
@@ -428,7 +428,7 @@
if (contentType != null)
{
// The type must be plain text.
- if (contentType.startsWith("text/plain"))
+ if (contentType.startsWith("text/plain") ||
contentType.startsWith("text/x-gwt-rpc"))
{
// And it must be UTF-8 encoded (or unspecified, in which case we
// assume that it's either UTF-8 or ASCII).
@@ -444,7 +444,7 @@
if (!contentTypeIsOkay)
{
throw new ServletException(
- "Content-Type must be 'text/plain' with
'charset=utf-8' (or unspecified charset)");
+ "Content-Type must be 'text/plain' or
'text/x-gwt-rpc' with 'charset=utf-8' (or unspecified charset)");
}
InputStream in = request.getInputStream();
try