lib/hyperdrive/middleware/parse_json_body.rb in hyperdrive-0.0.14 vs lib/hyperdrive/middleware/parse_json_body.rb in hyperdrive-0.0.15
- old
+ new
@@ -18,9 +18,10 @@
raise Hyperdrive::Errors::JSONParseError.new
end
env['rack.request.form_hash'] ||= {}
env['rack.request.form_hash'].merge!(json_body)
env['rack.request.form_input'] = Rack::Utils.build_query(env['rack.request.form_hash'])
+ env['rack.input'] = env['rack.request.form_input']
end
@app.call(env)
end
end
end