Frank::Handler calls next handlers when the request could not be served

This commit is contained in:
Juan Wajnerman 2014-06-12 11:23:35 -03:00
parent 2eaf44195e
commit c74e7f898b

View file

@ -13,7 +13,7 @@ class Frank::Handler < HTTP::Handler
HTTP::Response.new("HTTP/1.1", 500, "Internal Server Error", {"Content-Type" => "text/plain"}, ex.to_s)
end
else
HTTP::Response.new("HTTP/1.1", 404, "Not Found", {"Content-Type" => "text/plain"}, "Not Found")
call_next(request)
end
end