You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Paul Lindner (JIRA)" <ji...@apache.org> on 2008/11/01 00:33:44 UTC
[jira] Resolved: (SHINDIG-665) Content-type not set for JSON
responses
[ https://issues.apache.org/jira/browse/SHINDIG-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Lindner resolved SHINDIG-665.
----------------------------------
Resolution: Fixed
> Content-type not set for JSON responses
> ---------------------------------------
>
> Key: SHINDIG-665
> URL: https://issues.apache.org/jira/browse/SHINDIG-665
> Project: Shindig
> Issue Type: Bug
> Components: RESTful API (Java)
> Environment: Firefox 3
> Reporter: David Citron
> Priority: Minor
> Attachments: shindig-665.patch
>
>
> Currently, the "Content-Type" response header is not being set for JSON
> responses from, for example, DataServiceServlet and JsonRpcServlet. As
> such, the JSON data returned is causing errors to appear in the FireFox
> "Error Console" (syntax error/not well-formed). These errors do not
> appear to have any adverse effects on the browser behavior (?) but they
> do make gadget development more difficult as these spurious errors must
> be ignored.
> Is there a reason why DataServiceServlet and JsonRpcServlet don't set
> the response content type, similar to RpcServlet?
> servletResponse.setContentType("application/json; charset=utf-8");
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.