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

前端 未结 9 2701
离开以前
离开以前 2020-11-27 09:35

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 co

9条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 09:43

    Another workaround that removes the offending line from webrick. It's just not that useful:

    cd `which ruby`/../../lib/ruby/1.9.1/webrick/ && sed -i '.bak' -e'/logger.warn/d' httpresponse.rb
    

    (you may need to sudo)

提交回复
热议问题