RailsCasts Pro episodes are now free!

Learn more or hide this

Mike Nelson's Profile

GitHub User: mnelson

Site: http://www.mikeonrails.com

Comments by Mike Nelson

Avatar

Rack responses are not required to define join, only each. To ensure all responses are handled correctly by the middleware you can change it to:

ruby
response_body = ''
body.each{|bod| response_body << bod }
response_body