Skip to content

Commit

Permalink
Update server.rb
Browse files Browse the repository at this point in the history
Fix nil rack_options by defaulting to {}
  • Loading branch information
nesquena authored Apr 30, 2024
1 parent 889f662 commit 9ed5be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion padrino-core/lib/padrino-core/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.detect_application(options)
config_file ||= default_config_file
fail "Rack config file `#{config_file}` must have `.ru` extension" unless config_file =~ /\.ru$/
rack_app, rack_options = Rack::Builder.parse_file(config_file)
[rack_app, rack_options.merge(options)]
[rack_app, (rack_options || {}).merge(options)]
else
[Padrino.application, options]
end
Expand Down

0 comments on commit 9ed5be9

Please sign in to comment.