What does "WARN Could not determine content-length of response body." mean and how to I get rid of it?

Nate Bird picture Nate Bird · Aug 16, 2011 · Viewed 70.6k times · Source

Since upgrading to Rails 3.1 I'm seeing this warning message in my development log:

WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

What does this mean and how can I remove it? Is it a problem?

Answer

Luis Lavena picture Luis Lavena · Aug 31, 2011

Asked the same question to one of Rails-Core's members:

https://twitter.com/luislavena/status/108998968859566080

And the answer:

https://twitter.com/tenderlove/status/108999110136303617

ya, it's fine. Need to clean it up, but nothing is being hurt.