1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Move proper requires into rack handler run. Fixes #1076

This commit is contained in:
Evan Phoenix 2016-09-06 13:21:08 -07:00
parent 605200e575
commit f600a36812

View file

@ -1,5 +1,4 @@
require 'rack/handler'
require 'puma'
module Rack
module Handler
@ -10,6 +9,11 @@ module Rack
}
def self.run(app, options = {})
require 'puma/configuration'
require 'puma/commonlogger'
require 'puma/events'
require 'puma/launcher'
options = DEFAULT_OPTIONS.merge(options)
conf = ::Puma::Configuration.new(options) do |c|