diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-01-23 15:55:47 +1300 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-01-23 15:55:47 +1300 |
commit | f50b17e86ccd8bcfafbe124e98b5ad04e8ab5f6d (patch) | |
tree | 7964b29163e014231bf7d787a83e1b87815d3d74 /lib/rack/server.rb | |
parent | b7fca5d1039274c75481e0afb2a81790b1bf89d3 (diff) | |
download | rack-fix-server-options.tar.gz |
Prefer `**options`.fix-server-options
Diffstat (limited to 'lib/rack/server.rb')
-rw-r--r-- | lib/rack/server.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/server.rb b/lib/rack/server.rb index 6137f043..491a81f2 100644 --- a/lib/rack/server.rb +++ b/lib/rack/server.rb @@ -285,7 +285,7 @@ module Rack self.class.middleware end - def start &blk + def start(&block) if options[:warn] $-w = true end @@ -326,7 +326,7 @@ module Rack end end - server.run wrapped_app, options, &blk + server.run(wrapped_app, **options, &block) end def server |