lib/grape/batch/parser.rb in grape-batch-1.0.3 vs lib/grape/batch/parser.rb in grape-batch-1.0.4
- old
+ new
@@ -1,10 +1,10 @@
module Grape
module Batch
class Validator
class << self
def parse(env, limit)
- batch_body = decode_body(env['rack.input'])
+ batch_body = decode_body(env['rack.input'].read)
requests = batch_body['requests']
validate_requests(requests, limit)
requests.each do |request|