lib/grape/middleware/formatter.rb in grape-0.5.0 vs lib/grape/middleware/formatter.rb in grape-0.6.0
- old
+ new
@@ -39,10 +39,10 @@
private
# store read input in env['api.request.input']
def read_body_input
- if (request.post? || request.put? || request.patch?) &&
+ if (request.post? || request.put? || request.patch? || request.delete?) &&
(! request.form_data? || ! request.media_type) &&
(! request.parseable_data?) &&
(request.content_length.to_i > 0 || request.env['HTTP_TRANSFER_ENCODING'] == 'chunked')
if (input = env['rack.input'])