https://issues.apache.org/bugzilla/show_bug.cgi?id=50747

--- Comment #6 from Konstantin Kolinko <[email protected]> 2011-02-09 
16:54:08 EST ---
(In reply to comment #3)
> Tomcat could be a little smarter here.

For reference: I filed bug 50748 to deal with setContentLength() improvements.


(In reply to comment #4)
> Regarding the content length. So I guess that should be then like this?
> response.setContentLength(data.getBytes("UTF-8").length);
> 

If you already called getBytes() then use byte[] array that it returns and pass
to an OutputStream. You won't need a Writer. There is no need to do the double
work.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to