[Twisted-Python] turning off chunked transfer-encoding
Itamar Turner-Trauring
itamar at itamarst.org
Mon May 24 22:29:31 EDT 2010
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.
More information about the Twisted-Python
mailing list