lib/rasti/web/request.rb in rasti-web-0.1.0 vs lib/rasti/web/request.rb in rasti-web-0.1.1

- old
+ new

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