On Thu, 08 Jul 2010 10:50:40 -0300, fdesbois <fdesb...@codelutin.com>
wrote:
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 :)
Thanks for the info! It's a good ideea to set the content length header if
you already know it, anyway. :)
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org