Skip to content

Commit

Permalink
correct forwarded-for header
Browse files Browse the repository at this point in the history
  • Loading branch information
Gibheer committed Mar 5, 2014
1 parent 5b16243 commit 7f0df17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/zero/request/client.rb
Expand Up @@ -5,7 +5,7 @@ class Client
# the key for the ip of the client
KEY_REMOTE_ADDR = 'REMOTE_ADDR'
# in proxy setups, this is the real address of the client
KEY_FORWARDED_FOR = 'X_FORWARDED_FOR'
KEY_FORWARDED_FOR = 'HTTP_X_FORWARDED_FOR'
# the key for the hostname
KEY_REMOTE_HOST = 'REMOTE_HOST'
# the key for the user agent
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/zero/request/client/address_spec.rb
Expand Up @@ -16,7 +16,7 @@
let(:env) do
{
'REMOTE_ADDR' => proxy,
'X_FORWARDED_FOR' => address
'HTTP_X_FORWARDED_FOR' => address
}
end

Expand Down

0 comments on commit 7f0df17

Please sign in to comment.