bin/mite in mite-0.0.2 vs bin/mite in mite-0.0.3

- old
+ new

@@ -40,9 +40,15 @@ }) server = Mite::Server.new(config: config) loop do Arthropod::Server.pull(client: client, queue_name: options[:queue] || ENV["QUEUE_NAME"]) do |request| - status, headers, chunks = server.process(request.body) - [ status, headers, chunks.map(&:to_s).join] + status, headers, io = server.process(request.body) + + chunks = [] + io.each do |chunk| + chunks << chunk + end + + [ status, headers, chunks.join ] end end