comparison proxy_bind_transparent.t @ 1261:5da72eaa893f

Tests: reduced differences to the upcoming proxy_bind test script.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 19 Dec 2017 19:32:37 +0300
parents 766bcbb632ee
children
comparison
equal deleted inserted replaced
1260:eadd24ccfda1 1261:5da72eaa893f
54 server { 54 server {
55 listen 127.0.0.1:8081; 55 listen 127.0.0.1:8081;
56 server_name localhost; 56 server_name localhost;
57 57
58 location / { 58 location / {
59 add_header X-IP $remote_addr; 59 add_header X-IP $remote_addr always;
60 } 60 }
61 } 61 }
62 } 62 }
63 63
64 EOF 64 EOF
65 65
66 $t->write_file('index.html', '');
67 $t->run()->plan(1); 66 $t->run()->plan(1);
68 67
69 ############################################################################### 68 ###############################################################################
70 69
71 like(http_get('/'), qr/X-IP: 127.0.0.2/, 'transparent'); 70 like(http_get('/'), qr/X-IP: 127.0.0.2/, 'transparent');