We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c174271 commit 44bd334Copy full SHA for 44bd334
lib/rack/reverse_proxy.rb
@@ -24,6 +24,7 @@ def call(env)
24
end
25
}
26
headers['HOST'] = uri.host if all_opts[:preserve_host]
27
+ headers['X-Forwarded-Host'] = rackreq.host if all_opts[:x_forwarded_host]
28
29
session = Net::HTTP.new(uri.host, uri.port)
30
session.read_timeout=all_opts[:timeout] if all_opts[:timeout]
0 commit comments