Mercurial > hg > nginx-tests
comparison realip.t @ 265:a4e46d78ea6d
Tests: enabled realip tests for multiple X-Forwarded-For headers.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 27 Feb 2013 17:31:19 +0400 |
parents | 6a0d934950bc |
children | a9621dbbd0d4 |
comparison
equal
deleted
inserted
replaced
264:5ed8ef14f79c | 265:a4e46d78ea6d |
---|---|
77 like(http_xff('/2', '10.0.1.1, 192.0.2.1, 127.0.0.1'), | 77 like(http_xff('/2', '10.0.1.1, 192.0.2.1, 127.0.0.1'), |
78 qr/^X-IP: 192.0.2.1/m, 'realip recursive on'); | 78 qr/^X-IP: 192.0.2.1/m, 'realip recursive on'); |
79 | 79 |
80 TODO: { | 80 TODO: { |
81 | 81 |
82 local $TODO = 'not yet'; | 82 local $TODO = 'not yet' unless $t->has_version('1.3.14'); |
83 | 83 |
84 like(http(<<EOF), qr/^X-IP: 10.0.1.1/m, 'realip multi xff recursive off'); | 84 like(http(<<EOF), qr/^X-IP: 10.0.1.1/m, 'realip multi xff recursive off'); |
85 GET /1 HTTP/1.0 | 85 GET /1 HTTP/1.0 |
86 Host: localhost | 86 Host: localhost |
87 X-Forwarded-For: 192.0.2.1 | 87 X-Forwarded-For: 192.0.2.1 |