lib/airborne/base.rb in airborne-0.0.16 vs lib/airborne/base.rb in airborne-0.0.17

- old
+ new

@@ -81,10 +81,10 @@ def set_response(res) @response = res @body = res.body @headers = res.headers begin - @json_body = JSON.parse(res.body, symbolize_names: true) unless res.body == "" + @json_body = JSON.parse(res.body, symbolize_names: true) unless res.body.empty? rescue end end end