Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

@tomas-zemres
Copy link

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
Copy link
Author

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
Copy link
Owner

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

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants