m2r
m2r copied to clipboard
Make sure chunked responses from Rails works ok
https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-core/j5F0LchIaX8
It is problematic for some servers and probably does not work correctly right now
buffer = ""
body.each { |part| buffer << part }
return Response.new(status, headers, buffer)
We could check the Transfer-Encoding
header for chunked
value and send every chunk separately to m2 (and probably an empty one at the end).
Or we could just deliver every part to m2 as separate ZMQ message.