Skip to content

Commit

Permalink
Fix port/host arguments for rack handler
Browse files Browse the repository at this point in the history
  • Loading branch information
zanker committed Dec 19, 2012
1 parent 6f3654f commit 7da2b89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rack/handler/control_tower.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module Rack
module Handler
class ControlTower
def self.run(app, options={})
options[:port] = options.delete(:Port) if options[:Port]
options[:host] = options.delete(:Host) if options[:Host]

app = Rack::Chunked.new(Rack::ContentLength.new(app))
server = ::ControlTower::Server.new(app, options)
yield server if block_given?
Expand Down

0 comments on commit 7da2b89

Please sign in to comment.