Revision: 9056
Author: gwt.mirror...@gmail.com
Date: Wed Oct 13 17:22:55 2010
Log: Use the response setContentType() in RequestFactoryServlet instead
of the more generic setHeader() call.

Review at http://gwt-code-reviews.appspot.com/980801

http://code.google.com/p/google-web-toolkit/source/detail?r=9056

Modified:
/trunk/user/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java

=======================================
--- /trunk/user/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java Tue Oct 12 10:53:11 2010 +++ /trunk/user/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java Wed Oct 13 17:22:55 2010
@@ -112,8 +112,7 @@
requestProcessor.setOperationRegistry(new ReflectionBasedOperationRegistry(
               new DefaultSecurityProvider()));
           requestProcessor.setExceptionHandler(exceptionHandler);
-          response.setHeader("Content-Type",
-              RequestFactory.JSON_CONTENT_TYPE_UTF8);
+          response.setContentType(RequestFactory.JSON_CONTENT_TYPE_UTF8);
writer.print(requestProcessor.decodeAndInvokeRequest(jsonRequestString));
           writer.flush();
         }

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to