diff --git a/app/controllers/concerns/browse_everything/controller/json_api_requestable.rb b/app/controllers/concerns/browse_everything/controller/json_api_requestable.rb index db0e0ac8..449677b4 100644 --- a/app/controllers/concerns/browse_everything/controller/json_api_requestable.rb +++ b/app/controllers/concerns/browse_everything/controller/json_api_requestable.rb @@ -16,7 +16,9 @@ def json_api_request? def json_api_params return unless json_api_request? - payload = JSON.parse(request.body.string) + request.body.rewind + body_content = request.body.read + payload = JSON.parse(body_content) ActionController::Parameters.new(payload) end