On Sat, Dec 22, 2012 at 1:52 AM, <
fluff...@googlemail.com> wrote:
> I'm not sure if this is a bug on ServerStatus, on Plack::Util, a change
> request, or just me being stupid.
Your observation is correct and I'd say it's not a bug of any of those
- they all do the right thing. response_cb eliminates Content-Length
when it's given a content filter sub because it might change the
length of the body and sending the original Content-Length will surely
break the clients if the filter rewrites it.
I'd advice not to use the streaming response but instead supply
filehandle or the whole body in an array or otherwise not use
ServerStatus, or stick with the workaround you just found.
--
Tatsuhiko Miyagawa