lib/spark_api/request.rb in spark_api-1.2.1 vs lib/spark_api/request.rb in spark_api-1.3.0

- old
+ new

@@ -96,10 +96,10 @@ raise e end def process_request_body(body) if body.is_a?(Hash) - body.empty? ? "{}" : {"D" => body }.to_json + body.empty? ? nil : {"D" => body }.to_json else body end end