proxy 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/lib/proxy/action_controller/abstract_request.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -22,7 +22,7 @@ module Proxy
|
|
22
22
|
def forwarded_hosts
|
23
23
|
hosts = env['HTTP_X_FORWARDED_HOST'].to_s.split(/,\s*/)
|
24
24
|
unless hosts.empty? || hosts.first != hosts.last
|
25
|
-
hosts
|
25
|
+
hosts << env['HTTP_HOST'] unless env['HTTP_HOST'].blank?
|
26
26
|
env['HTTP_X_FORWARDED_HOST'] = hosts.join(', ')
|
27
27
|
end
|
28
28
|
hosts
|