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 CHANGED
@@ -1,5 +1,6 @@
1
1
  2009-06-05 - Sean Huber (shuber@huberry.com)
2
2
  * Fix bug with passenger
3
+ * Append http host instead of replacing
3
4
 
4
5
  2009-06-05 - Sean Huber (shuber@huberry.com)
5
6
  * Add multiple domain support for rack
@@ -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[hosts.size - 1] = env['HTTP_HOST']
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 3
8
- - 4
9
- version: 1.3.4
8
+ - 5
9
+ version: 1.3.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sean Huber