lib/angelo/server.rb in angelo-0.1.18 vs lib/angelo/server.rb in angelo-0.1.19
- old
+ new
@@ -42,11 +42,10 @@
route! meth, connection, request
end
end
def route! meth, connection, request
- rs = @base.routes[meth][request.path]
- if rs
+ if @base.routes[meth] and rs = @base.routes[meth][request.path]
responder = rs.dup
responder.base = @base.new responder
responder.connection = connection
responder.request = request
else