lib/rasti/web/request.rb in rasti-web-2.0.0 vs lib/rasti/web/request.rb in rasti-web-2.0.1

- old
+ new

@@ -18,10 +18,10 @@ text end end def json? - content_type && ContentType.parse(content_type).mime_type == 'application/json' + !content_type.nil? && ContentType.parse(content_type).mime_type == 'application/json' rescue false end end \ No newline at end of file