Skip to content

Commit c8f0481

Browse files
committed
uses JSON.generate instead of to_json;
1 parent 475d2ad commit c8f0481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/simple_spark/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def call(opts)
4242

4343
path = "#{@base_path}#{path}"
4444
params = { path: path, headers: headers }
45-
params[:body] = body_values.to_json unless body_values.empty?
45+
params[:body] = JSON.generate(body_values) unless body_values.empty?
4646
params[:query] = query_params unless query_params.empty?
4747

4848
if @debug

0 commit comments

Comments
 (0)