Monkey patch the port number in the rack request
[rails.git] / config / initializers / rack_request.rb
1 # Hack to workaround https://github.com/phusion/passenger/issues/1421
2 if defined?(PhusionPassenger)
3   module Rack
4     class Request
5       def port
6         DEFAULT_PORTS[scheme]
7       end
8     end
9   end
10 end