lib/jets/middleware/default_stack.rb in jets-1.6.8 vs lib/jets/middleware/default_stack.rb in jets-1.6.9

- old
+ new

@@ -6,11 +6,11 @@ @config = config end def build_stack Stack.new do |middleware| - middleware.use Jets::Controller::Middleware::Cors if cors_enabled? middleware.use Rack::Runtime + middleware.use Jets::Controller::Middleware::Cors if cors_enabled? middleware.use Rack::MethodOverride # must come before Middleware::Local for multipart post forms to work middleware.use Jets::Controller::Middleware::Local # mimics AWS Lambda for local server only middleware.use session_store, session_options # use session_store, session_options middleware.use Rack::Head middleware.use Rack::ConditionalGet