Skip to content

Commit

Permalink
Passenger support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Campi committed Mar 31, 2011
1 parent b57490f commit 307017e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -4,6 +4,7 @@ gem 'ffi'

group :development do
gem 'autotest'
gem 'passenger'
gem 'rack'
gem 'rspec'
gem 'thin'
Expand Down
12 changes: 12 additions & 0 deletions Gemfile.lock
Expand Up @@ -4,11 +4,21 @@ GEM
ZenTest (4.5.0)
autotest (4.4.6)
ZenTest (>= 4.4.1)
daemon_controller (0.2.6)
daemons (1.1.0)
diff-lcs (1.1.2)
eventmachine (0.12.10)
fastthread (1.0.7)
ffi (1.0.6)
rake (>= 0.8.7)
file-tail (1.0.5)
spruz (>= 0.1.0)
passenger (3.0.5)
daemon_controller (>= 0.2.5)
fastthread (>= 1.0.1)
file-tail
rack
rake (>= 0.8.1)
rack (1.2.1)
rake (0.8.7)
rspec (2.0.1)
Expand All @@ -21,6 +31,7 @@ GEM
rspec-mocks (2.0.1)
rspec-core (~> 2.0.1)
rspec-expectations (~> 2.0.1)
spruz (0.2.5)
thin (1.2.8)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
Expand All @@ -32,6 +43,7 @@ PLATFORMS
DEPENDENCIES
autotest
ffi
passenger
rack
rspec
thin
8 changes: 7 additions & 1 deletion lib/perl/rack.rb
Expand Up @@ -26,7 +26,13 @@ def call(env)
end

def clean_env(hash)
hash.dup.tap do |h|
ret = hash.dup
if defined?(PhusionPassenger)
ret = ret.reject do |k,v|
v.is_a?(PhusionPassenger::Utils::RewindableInput)
end
end
ret.tap do |h|
["async.close"].each do |k|
if h.has_key?(k)
puts "Cannot handle env['#{k}'] (#{k} => #{h[k].inspect}), skipping"
Expand Down

0 comments on commit 307017e

Please sign in to comment.