Revision: 8490
Author: [email protected]
Date: Thu Aug 5 13:36:54 2010
Log: Fix RPC charset parameter tests to be consistent with
ServletResponse#getCharacterEncoding(),
i.e. return only the charset (e.g. 'UTF-8') and do not include the
Content-Type charset parameter (e.g. 'charset=UTF-8')
See
http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/ServletResponse.html#getCharacterEncoding()
Review at http://gwt-code-reviews.appspot.com/723803
Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=8490
Modified:
/trunk/user/test/com/google/gwt/user/server/rpc/RPCServletUtilsTest.java
=======================================
---
/trunk/user/test/com/google/gwt/user/server/rpc/RPCServletUtilsTest.java
Mon Aug 2 20:55:43 2010
+++
/trunk/user/test/com/google/gwt/user/server/rpc/RPCServletUtilsTest.java
Thu Aug 5 13:36:54 2010
@@ -53,7 +53,7 @@
@Override
public String getCharacterEncoding() {
- return "charset=utf-8";
+ return "utf-8";
}
@Override
@@ -174,7 +174,7 @@
@Override
public String getCharacterEncoding() {
- return "charset=EBCDIC-US";
+ return "EBCDIC-US";
}
};
@@ -197,7 +197,7 @@
@Override
public String getCharacterEncoding() {
- return "charset=EBCDIC-US";
+ return "EBCDIC-US";
}
};
boolean gotException = false;
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors