lib/spiderfw/http/adapters/rack.rb in spiderfw-0.6.20 vs lib/spiderfw/http/adapters/rack.rb in spiderfw-0.6.21
- old
+ new
@@ -99,16 +99,16 @@
run_block = lambda do
begin
controller = ::Spider::HTTPController.new(controller_request, controller_response)
controller.extend(Spider::FirstResponder)
- controller.before(path)
+ controller.call_before(path)
controller.execute(path)
if Spider.conf.get('webserver.force_threads')
w.close
controller_response.server_output.send_headers unless controller_response.server_output.headers_sent?
end
- controller.after(path)
+ controller.call_after(path)
controller_done = true
Spider::Logger.debug("Controller done")
rescue => exc
Spider.logger.debug("Error:")
Spider.logger.debug(exc)