Permalink
Browse files

Fix a bug in CGI detection

  • Loading branch information...
1 parent 058fe13 commit 456fb5fc658fec45a07c765ef22b2ced935808b1 @raggi raggi committed Mar 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/server.rb
View
@@ -168,7 +168,7 @@ def app
def self.middleware
@middleware ||= begin
m = Hash.new {|h,k| h[k] = []}
- m["deployment"].concat [lambda {|server| server.server =~ /CGI/ ? nil : [Rack::CommonLogger, $stderr] }]
+ m["deployment"].concat [lambda {|server| server.server.name =~ /CGI/ ? nil : [Rack::CommonLogger, $stderr] }]
m["development"].concat m["deployment"] + [[Rack::ShowExceptions], [Rack::Lint]]
m
end

0 comments on commit 456fb5f

Please sign in to comment.