Last Updated: September 29, 2021
·
1.429K
· debbora

Rails Server: Could not determine content-length of response body

Em aplicações 1.9.3, para remover o aviso do console
WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

Podemos instalar a gem thin no ambiente
gem 'thin'
ou via gemfile
gem install thin

E subir o server com o Thin ao invés do WebRick
rails s thin