Skip to content

Commit f4a0a53

Browse files
authored
Merge pull request #11 from jplethier/feature/fixes-json-body
Uses JSON.generate instead of to_json on client call method
2 parents 475d2ad + c8f0481 commit f4a0a53

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)