[web2py] Re: content type of jsonrpc service reply

2011-09-02 Thread Massimo Di Pierro
Good catch. Can you check trunk? On Sep 2, 7:02 pm, Jonathan Lundell wrote: > On Sep 2, 2011, at 3:45 PM, Stefaan Himpe wrote: > > >> Is this coming through generic.json? > > > I created a simple web application from scratch, only added this code in > > the controller (I think web2py has support

Re: [web2py] Re: content type of jsonrpc service reply

2011-09-02 Thread Jonathan Lundell
On Sep 2, 2011, at 3:45 PM, Stefaan Himpe wrote: >> Is this coming through generic.json? > > I created a simple web application from scratch, only added this code in the > controller (I think web2py has support for both json and jsonrpc? i'm using > jsonrpc here): It looks to me as if Service.

[web2py] Re: content type of jsonrpc service reply

2011-09-02 Thread Stefaan Himpe
Is this coming through generic.json? I created a simple web application from scratch, only added this code in the controller (I think web2py has support for both json and jsonrpc? i'm using jsonrpc here): @service.jsonrpc def add(x,y): return x+y Now, I post a json request over http to

Re: [web2py] Re: content type of jsonrpc service reply

2011-09-02 Thread Jonathan Lundell
Is this coming through generic.json? On Sep 2, 2011, at 2:15 PM, Stefaan Himpe wrote: > >> There *is* a bug, but it should be generating text/x-json (and that should >> be fixed). Are you sure you're getting text/html? > > I definitely received text/html. > (web2py 1.98.2, running on rocket 1

[web2py] Re: content type of jsonrpc service reply

2011-09-02 Thread Stefaan Himpe
There *is* a bug, but it should be generating text/x-json (and that should be fixed). Are you sure you're getting text/html? I definitely received text/html. (web2py 1.98.2, running on rocket 1.2.2). A wide variety of content types seems to be in use, but http://www.ietf.org/rfc/rfc4627.txt