Monkey patch the port number in the rack request
https://github.com/phusion/passenger/issues/1421
This commit is contained in:
parent
e0c9b2e7fe
commit
88f8544d8c
1 changed files with 10 additions and 0 deletions
10
config/initializers/rack_request.rb
Normal file
10
config/initializers/rack_request.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue