Le Thu, 08 Jul 2010 08:56:12 -0300, "Thiago H. de Paula Figueiredo" <thiag...@gmail.com> a écrit :
> On Thu, 08 Jul 2010 08:34:06 -0300, fdesbois > <fdesb...@codelutin.com> wrote: > > > Hi, > > Hi! > > > How can I disable Transfer-Encoding chunked ? I tried to do this in > > the StreamResponse : > > I really don't know the answer, but I guess this is related to the > server configuration, not Tapestry-related. > I resolve my problem setting the Content-Length of the result Stream : @Override public void prepareResponse(Response response) { response.setHeader("Content-Length", "" + length); } where length = inputStream.available(); or file.length(); The Transfer-Encoding is not used anymore if Content-Length is defined :) -- Florian Desbois <fdesb...@codelutin.com> SSLL Code Lutin http://www.codelutin.com tel : 02 40 50 29 28 Réseau Libre-Entreprise --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org