comparison http_host.t @ 1451:9d579fc770a6

Tests: style.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 22 Mar 2019 15:31:10 +0300
parents 882267679006
children 27237569776f
comparison
equal deleted inserted replaced
1450:5f53a1d6b83c 1451:9d579fc770a6
49 EOF 49 EOF
50 50
51 $t->run(); 51 $t->run();
52 52
53 ############################################################################### 53 ###############################################################################
54
55 54
56 is(http_host_header('www.abcd-ef.g02.xyz'), 'www.abcd-ef.g02.xyz', 55 is(http_host_header('www.abcd-ef.g02.xyz'), 'www.abcd-ef.g02.xyz',
57 'domain w/o port (host header)'); 56 'domain w/o port (host header)');
58 is(http_host_header('abcd-ef.g02.xyz:' . port(8080)), 'abcd-ef.g02.xyz', 57 is(http_host_header('abcd-ef.g02.xyz:' . port(8080)), 'abcd-ef.g02.xyz',
59 'domain w/port (host header)'); 58 'domain w/port (host header)');
189 Host: localhost 188 Host: localhost
190 189
191 EOF 190 EOF
192 return ($all ? $r : Test::Nginx::http_content($r)); 191 return ($all ? $r : Test::Nginx::http_content($r));
193 } 192 }
193
194 ###############################################################################