diff options
Diffstat (limited to 'lib/unicorn/oob_gc.rb')
-rw-r--r-- | lib/unicorn/oob_gc.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/oob_gc.rb b/lib/unicorn/oob_gc.rb index a0e8f1d..312b44c 100644 --- a/lib/unicorn/oob_gc.rb +++ b/lib/unicorn/oob_gc.rb @@ -47,9 +47,9 @@ module Unicorn::OobGC @@nr = interval self.const_set :OOBGC_PATH, path self.const_set :OOBGC_INTERVAL, interval - self.const_set :OOBGC_ENV, Unicorn::HttpRequest::REQ ObjectSpace.each_object(Unicorn::HttpServer) do |s| s.extend(self) + self.const_set :OOBGC_ENV, s.instance_variable_get(:@request).env end app # pretend to be Rack middleware since it was in the past end |