Re: [Twisted-Python] turning off chunked transfer-encoding

2010-05-25 Thread Michael P. Soulier
On 25/05/10 Itamar Turner-Trauring said: > Chunked encoding has nothing to do with the content type. It is used if > you do not set a content-length header. > > So, figure out your response's length (in bytes), and set the > content-length header to that. I'll try that, thanks. Mike -- Michael

Re: [Twisted-Python] turning off chunked transfer-encoding

2010-05-24 Thread Itamar Turner-Trauring
On Mon, 2010-05-24 at 22:07 -0400, Michael P. Soulier wrote: > Hi, > > I noticed that when using twisted.internet.http and returning a Content-type > of application/json, the server responds with chunked transfer encoding. Chunked encoding has nothing to do with the content type. It is used if y