Permalink
Browse files

Added spec for new Squid behaviour.

  • Loading branch information...
barttenbrinke committed Jan 22, 2013
1 parent 8025a4a commit 0c14599efdab4788b446d2526b120c03a2868187
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/spec_request.rb
View
@@ -929,6 +929,11 @@
'HTTP_X_FORWARDED_FOR' => '3.4.5.6'
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'

0 comments on commit 0c14599

Please sign in to comment.