Monkey patch the port number in the rack request

https://github.com/phusion/passenger/issues/1421
This commit is contained in:
Tom Hughes 2015-03-10 12:10:12 +00:00
parent e0c9b2e7fe
commit 88f8544d8c

View file

@ -0,0 +1,10 @@
# Hack to workaround https://github.com/phusion/passenger/issues/1421
if defined?(PhusionPassenger)
module Rack
class Request
def port
DEFAULT_PORTS[scheme]
end
end
end
end