lib/utopia/middleware/content.rb in utopia-0.12.2 vs lib/utopia/middleware/content.rb in utopia-0.12.3

- old
+ new

@@ -27,11 +27,11 @@ require 'utopia/middleware/content/processor' require 'trenni/template' module Utopia module Middleware - + class Content def initialize(app, options = {}) @app = app @root = File.expand_path(options[:root] || Utopia::Middleware::default_root) @@ -142,9 +142,10 @@ if request.controller attributes = request.controller.to_hash end node.process!(request, response, attributes) + return response.finish end else return @app.call(env) end