On Tue, Aug 20, 2013 at 12:36 PM, Miguel Cabo <[email protected]>wrote:
> I had a problem with Restful requests. The content-type response header > was text/plain when I sent a http://xxx.json request. Is it ok? I need > content-type response header as application/json. To do that I have > modified the glucon/contenttype.py with the following code: > In your api controller you can set the response content type, eg: @request.restful() def api(): response.headers['Content-Type'] = 'application/json' -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

