this was fixed in a recent revision. Yes, you could force the content-type but it was supposed to be auto-detected, and that's what the revision patched.
On Wednesday, August 21, 2013 6:23:27 PM UTC+2, Ricardo Pedroso wrote: > > > On Tue, Aug 20, 2013 at 12:36 PM, Miguel Cabo > <[email protected]<javascript:> > > 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.

