Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added spec for new Squid behaviour.

  • Loading branch information...
commit 0c14599efdab4788b446d2526b120c03a2868187 1 parent 8025a4a
@barttenbrinke barttenbrinke authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/spec_request.rb
View
5 test/spec_request.rb
@@ -930,6 +930,11 @@
res.body.should.equal '1.2.3.4'
res = mock.get '/',
+ 'REMOTE_ADDR' => '1.2.3.4',
+ 'HTTP_X_FORWARDED_FOR' => 'unknown'
+ res.body.should.equal '1.2.3.4'
+
+ res = mock.get '/',
'REMOTE_ADDR' => '127.0.0.1',
'HTTP_X_FORWARDED_FOR' => '3.4.5.6'
res.body.should.equal '3.4.5.6'
Please sign in to comment.
Something went wrong with that request. Please try again.