Echo body as well
@@ -23,7 +23,11 @@ module ShootoutApp
request.params.each { |k,v| out << "#{k}: #{v}\n" ; len += out[-1].length }
end
if(env['rack.input'])
+ env['rack.input'].rewind
+ out << "Body\n\n"
out << env['rack.input'].read
+ len += out[-1].length + 6
+ out << "\n\nBody Length: #{out[-1].length}\n\n"
len += out[-1].length
end
[200, { 'Content-Length' => len.to_s, 'Content-Type' => 'text/plain; charset=UTF-8;' }, out]
