lib/runcible/base.rb in runcible-1.3.3 vs lib/runcible/base.rb in runcible-1.3.4

- old
+ new

@@ -135,10 +135,10 @@ return payload.to_json end def process_response(response) begin - body = JSON.parse(response.body) + body = response.body == "null" ? nil : JSON.parse(response.body) if body.respond_to? :with_indifferent_access body = body.with_indifferent_access elsif body.is_a? Array body = body.map do |i| i.respond_to?(:with_indifferent_access) ? i.with_indifferent_access : i