diff options
Diffstat (limited to 'lib/rack/handler/fastcgi.rb')
-rw-r--r-- | lib/rack/handler/fastcgi.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rack/handler/fastcgi.rb b/lib/rack/handler/fastcgi.rb index e918dc94..b3f825da 100644 --- a/lib/rack/handler/fastcgi.rb +++ b/lib/rack/handler/fastcgi.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'fcgi' require 'socket' require 'rack/content_length' @@ -7,7 +9,7 @@ if defined? FCGI::Stream class FCGI::Stream alias _rack_read_without_buffer read - def read(n, buffer=nil) + def read(n, buffer = nil) buf = _rack_read_without_buffer n buffer.replace(buf.to_s) if buffer buf @@ -18,7 +20,7 @@ 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] |