comparison http_host.t @ 1693:5ac6efbe5552

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 01 Jun 2021 16:40:18 +0300
parents 8659123d2d37
children c48b2b0b8c2a
comparison
equal deleted inserted replaced
1692:f6795e2e6a4b 1693:5ac6efbe5552
167 'IPvFuture all symbols (absolute request)'); 167 'IPvFuture all symbols (absolute request)');
168 168
169 is(http_host_header('123.40.56.78:9000:80'), '123.40.56.78', 169 is(http_host_header('123.40.56.78:9000:80'), '123.40.56.78',
170 'double port hack'); 170 'double port hack');
171 171
172 TODO: {
173 local $TODO = 'not yet' unless $t->has_version('1.17.9');
174
175 like(http_host_header("localhost\nHost: again", 1), qr/ 400 /, 'host repeat'); 172 like(http_host_header("localhost\nHost: again", 1), qr/ 400 /, 'host repeat');
176
177 }
178 173
179 ############################################################################### 174 ###############################################################################
180 175
181 sub http_host_header { 176 sub http_host_header {
182 my ($host, $all) = @_; 177 my ($host, $all) = @_;