Response header "Content-Lenght" is discarded by "ServerStatus::Lite" #6

Closed
tomas-zemres opened this Issue Jan 25, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@tomas-zemres

When I use middleware ServerStatus::Lite, then response header "Content-Length" is not returned from server (for example in static files).

If I remove "ServerStatus::Lite" from my server, then "Content-Length" is correctly present in response.

@tomas-zemres

This comment has been minimized.

Show comment
Hide comment
@tomas-zemres

tomas-zemres Jan 25, 2013

Nice would be fix "ServerStatus::Lite::call"
to do not return Plack::Util::response_cb() if wrapped application also don't return "callback",
because if "callback function" is returned also for static files, then starman server discards "Content-Length"
from reponse headers.

Nice would be fix "ServerStatus::Lite::call"
to do not return Plack::Util::response_cb() if wrapped application also don't return "callback",
because if "callback function" is returned also for static files, then starman server discards "Content-Length"
from reponse headers.

@kazeburo

This comment has been minimized.

Show comment
Hide comment
@kazeburo

kazeburo Jan 28, 2013

Owner

Resolved in version 0.10.
0.10 doesn't use response_cb if a response isnt' not ArrayRef.

Thank you.

Owner

kazeburo commented Jan 28, 2013

Resolved in version 0.10.
0.10 doesn't use response_cb if a response isnt' not ArrayRef.

Thank you.

@kazeburo kazeburo closed this Jan 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment