Skip to content

Commit

Permalink
Merge pull request #11 from jplethier/feature/fixes-json-body
Browse files Browse the repository at this point in the history
Uses JSON.generate instead of to_json on client call method
  • Loading branch information
jakcharlton authored Jul 20, 2016
2 parents 475d2ad + c8f0481 commit f4a0a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simple_spark/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def call(opts)

path = "#{@base_path}#{path}"
params = { path: path, headers: headers }
params[:body] = body_values.to_json unless body_values.empty?
params[:body] = JSON.generate(body_values) unless body_values.empty?
params[:query] = query_params unless query_params.empty?

if @debug
Expand Down

0 comments on commit f4a0a53

Please sign in to comment.