comparison proxy_force_ranges.t @ 1381:97c8280de681

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 08 Oct 2018 15:30:39 +0300
parents 0c15ba7d19b3
children f026c41335b2
comparison
equal deleted inserted replaced
1380:f50c7d90f5c9 1381:97c8280de681
92 like(http_get_range('/cache/t.html', 'Range: bytes=0-2,4-'), qr/^SEE.*^THIS/ms, 92 like(http_get_range('/cache/t.html', 'Range: bytes=0-2,4-'), qr/^SEE.*^THIS/ms,
93 'cached multipart range'); 93 'cached multipart range');
94 94
95 # If-Range HTTP-date request 95 # If-Range HTTP-date request
96 96
97 TODO: {
98 local $TODO = 'not yet' unless $t->has_version('1.13.5');
99
100 like(http_get_range('/proxy/t.html', 97 like(http_get_range('/proxy/t.html',
101 "Range: bytes=4-\nIf-Range: Mon, 28 Sep 1970 06:00:00 GMT"), 98 "Range: bytes=4-\nIf-Range: Mon, 28 Sep 1970 06:00:00 GMT"),
102 qr/^THIS/m, 'if-range last-modified proxy'); 99 qr/^THIS/m, 'if-range last-modified proxy');
103
104 }
105 100
106 # If-Range entity-tag request 101 # If-Range entity-tag request
107 102
108 like(http_get_range('/proxy/t.html', 103 like(http_get_range('/proxy/t.html',
109 "Range: bytes=4-\nIf-Range: \"59a5401c-8\""), 104 "Range: bytes=4-\nIf-Range: \"59a5401c-8\""),