lib/tynn/not_found.rb in tynn-0.0.3 vs lib/tynn/not_found.rb in tynn-0.0.4
- old
+ new
@@ -1,11 +1,9 @@
module Tynn::NotFound
- def call(env, inbox) # :nodoc:
- result = super(env, inbox)
+ def call(*) # :nodoc:
+ result = super
- status, _, body = result
-
- if status == 404 && body.empty?
+ if result[0] == 404 && result[2].empty?
not_found
return res.finish
else
return result