Mercurial > hg > nginx-tests
diff proxy-noclose.t @ 45:d68b85def521
Tests: use 127.0.0.1 instead of localhost.
Name 'localhost' is ambiguous if ipv6 present on system.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 02 Nov 2008 15:01:41 +0300 |
parents | daa295331acd |
children | 726c3c2a8b8c |
line wrap: on
line diff
--- a/proxy-noclose.t +++ b/proxy-noclose.t @@ -52,16 +52,16 @@ http { proxy_temp_path %%TESTDIR%%/proxy_temp; server { - listen localhost:8080; + listen 127.0.0.1:8080; server_name localhost; location / { - proxy_pass http://localhost:8081; + proxy_pass http://127.0.0.1:8081; proxy_read_timeout 1s; } location /uselen { - proxy_pass http://localhost:8081; + proxy_pass http://127.0.0.1:8081; # test will wait only 2s for reply, we it will fail if # Content-Length not used as a hint