rack-wwwhisper 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rack/wwwhisper.rb +3 -3
  2. metadata +4 -4
@@ -66,8 +66,8 @@ class WWWhisper
66
66
  @@AUTH_COOKIES_PREFIX = 'wwwhisper'
67
67
  # Headers that are passed to wwwhisper ('Cookie' is handled
68
68
  # in a special way: only wwwhisper related cookies are passed).
69
- @@FORWARDED_HEADERS = ['Accept', 'Accept-Language', 'Cookie', 'X-CSRFToken',
70
- 'X-Requested-With']
69
+ @@FORWARDED_HEADERS = ['Accept', 'Accept-Language', 'Cookie', 'Origin',
70
+ 'X-CSRFToken', 'X-Requested-With']
71
71
  @@DEFAULT_IFRAME = \
72
72
  %Q[<iframe id="wwwhisper-iframe" src="%s" width="340" height="29"
73
73
  frameborder="0" scrolling="no" style="position:fixed; overflow:hidden;
@@ -181,7 +181,7 @@ class WWWhisper
181
181
  else
182
182
  @scheme = env['HTTP_X_FORWARDED_PROTO'] || 'http'
183
183
  @host, port_from_host = env['HTTP_HOST'].split(/:/)
184
- @port = env['HTTP_X_FORWARDED_PORT'] || port_from_host ||
184
+ @port = env['HTTP_X_FORWARDED_PORT'].to_i || port_from_host.to_i ||
185
185
  default_port(@scheme)
186
186
  port_str = @port != default_port(@scheme) ? ":#{@port}" : ""
187
187
  @site_url = "#{@scheme}://#{@host}#{port_str}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-wwwhisper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-29 00:00:00.000000000 Z
12
+ date: 2013-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -131,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  segments:
133
133
  - 0
134
- hash: 3968892824815011931
134
+ hash: -2575121485719748046
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  none: false
137
137
  requirements:
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  segments:
142
142
  - 0
143
- hash: 3968892824815011931
143
+ hash: -2575121485719748046
144
144
  requirements: []
145
145
  rubyforge_project:
146
146
  rubygems_version: 1.8.24