Pass array of handlers to HTTP::Server

This commit is contained in:
Ary Borenszweig 2014-06-12 13:25:36 -03:00
parent d62aa372b3
commit a1c8a1b6f1

View file

@ -15,7 +15,7 @@ at_exit do
handlers << HTTP::LogHandler.new
handlers << HTTP::StaticFileHandler.new("./public")
handlers << $frank_handler
server = HTTP::Server.new(port, HTTP::Server.build_middleware handlers)
server = HTTP::Server.new(port, handlers)
puts "Listening on http://0.0.0.0:#{port}"
server.listen