Thanks Massimo :) Works fine now.

Matt

On Apr 4, 10:30 am, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
> fixed now in trunk, please check it. Thanks for reporting the problem
>
> On Apr 3, 5:03 pm, Matt <mjwat...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi there,
>
> > When I try and send "JSON" responses with HTTP status codes in the 400
> > range I get the following "IE 512 byte bugfix" inserted into my
> > response.
>
> >http://localhost:8000/test.json
>
> > def test():
> >     response.status = 400
> >     d = dict()
> >     d['hello'] = 'world'
> >     return dict(object=d)
>
> > {"object": {"hello": "world"}}
> > <!--
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx //--
>
> > Which screws up parsing the response and also makes the payload size
> > far larger than it needs to be.
>
> > Is there any way to have this removed for non "html" responses?
>
> > Thanks in advance,
> > Matt

Reply via email to