Skip to content

Commit d192e65

Browse files
committed
fix: clamp Puma configuration options in run method
1 parent 180f292 commit d192e65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/support/server.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def middleware
104104
def run
105105
options = { Host: host, Port: port, Threads: "0:4", workers: 0, daemon: false }
106106
config = Rack::Handler::Puma.config(middleware, options)
107+
config.clamp
107108
log_writer = config.options[:Silent] ? ::Puma::LogWriter.strings : ::Puma::LogWriter.stdio
108109
config.options[:log_writer] = log_writer
109110

0 commit comments

Comments
 (0)