lib/airborne/base.rb in airborne-0.1.16 vs lib/airborne/base.rb in airborne-0.1.17

- old
+ new

@@ -56,10 +56,10 @@ def options(url, headers = nil) set_response(make_request(:options, url, headers: headers)) end def json_body - set_response(@response) if @json_body.nil? && !@response.nil? + set_response(@response) unless @response.nil? fail InvalidJsonError, 'Api request returned invalid json' unless @json_body @json_body end private