lib/rack/handler/fastcgi.rb in rack-2.1.4.4 vs lib/rack/handler/fastcgi.rb in rack-2.2.0

- old
+ new

@@ -1,11 +1,9 @@ # frozen_string_literal: true require 'fcgi' require 'socket' -require 'rack/content_length' -require 'rack/rewindable_input' if defined? FCGI::Stream class FCGI::Stream alias _rack_read_without_buffer read @@ -18,10 +16,10 @@ end module Rack module Handler class FastCGI - def self.run(app, options = {}) + def self.run(app, **options) if options[:File] STDIN.reopen(UNIXServer.new(options[:File])) elsif options[:Port] STDIN.reopen(TCPServer.new(options[:Host], options[:Port])) end