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
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.


_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to