Dont call setup in config#add_filter_handler. Fixes #338

This commit is contained in:
Sdogruyol 2017-03-25 20:37:11 +03:00
parent 732b3edbfd
commit f511d21aa1

View file

@ -66,7 +66,6 @@ module Kemal
end end
def add_filter_handler(handler : HTTP::Handler) def add_filter_handler(handler : HTTP::Handler)
setup
HANDLERS.insert HANDLERS.size - 1, handler HANDLERS.insert HANDLERS.size - 1, handler
end end