lib/dirigible/request.rb in dirigible-1.0.4 vs lib/dirigible/request.rb in dirigible-1.1.0
- old
+ new
@@ -36,9 +36,9 @@
request.headers.merge!(headers)
end
Utils.handle_api_error(response) unless (200..399).include?(response.status)
- Utils.parse_json(response.body) unless response.body == ''
+ Utils.parse_message(response)
end
end
end