Permalink
Browse files

Merge pull request #2 from zanker/patch-1

Fix port/host arguments for rack handler
  • Loading branch information...
2 parents 6f3654f + 7da2b89 commit 1fb1fbe819d26405e1c5058dfb3d1a243185d2b6 @jballanc jballanc committed Dec 28, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/rack/handler/control_tower.rb
@@ -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?

0 comments on commit 1fb1fbe

Please sign in to comment.