RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: mnelson
Site: http://www.mikeonrails.com
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:
join
each
response_body = '' body.each{|bod| response_body << bod } response_body
Rack responses are not required to define
join
, onlyeach
. To ensure all responses are handled correctly by the middleware you can change it to:response_body = '' body.each{|bod| response_body << bod } response_body