Permalink
Browse files

HttpServer.port only overrides first connector (fix 5cf7d49)

  • Loading branch information...
1 parent 972eabf commit 68cee81aab3a5bacf21ee71c1f33c83069eab1f1 @dekellum committed Aug 19, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/mizuno/http_server.rb
@@ -75,7 +75,9 @@ def stop
end
def create_connectors
- super.each { |c| c.host = @host if @host }
+ super.tap do |ctrs|
+ ctrs.first.host = @host if ctrs.first
+ end
end
end

0 comments on commit 68cee81

Please sign in to comment.