cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: content-length (was cvs commit: xml-cocoon/src/org/apache/cocoon Engine.java
Date Thu, 07 Dec 2000 04:05:18 GMT
On Wed, 6 Dec 2000, Robin Green wrote:

> balld@locus.apache.org wrote:
> >+                }
> >+
> >+                if (!VERBOSE && page.isText()) {
> >+                    response.setContentLength(page.getContent().length());
>
> Unfortunately that won't work - it needs to be in number of bytes, which
> isn't necessarily the same as the number of characters.

er, well, i patched a quick fix that should work - and even do the
encoding stuff right - but feel free to change it if you want - just
thought i'd get a jump start. :)

- donald


Mime
View raw message