Fixes bug in CartoDB Central communication: ruby's JSON parser parser nil into a simple null string, which is invalid (incomplete) JSON

pull/15606/head
Owayss Kabtoul 4 years ago
parent 41f80b3d86
commit 39267618e9

@ -36,7 +36,7 @@ module Cartodb
http_client.request(
"#{@host}/#{path}",
method: method,
body: body.to_json,
body: body.nil? ? nil: body.to_json,
userpwd: "#{@auth[:username]}:#{@auth[:password]}",
headers: { "Content-Type" => "application/json" },
ssl_verifypeer: Rails.env.production?,

Loading…
Cancel
Save