Mercurial > hg > nginx-tests
comparison proxy_force_ranges.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 | 86510f795546 |
children |
comparison
equal
deleted
inserted
replaced
1692:f6795e2e6a4b | 1693:5ac6efbe5552 |
---|---|
107 "Range: bytes=4-\nIf-Range: \"59a5401c-8\""), | 107 "Range: bytes=4-\nIf-Range: \"59a5401c-8\""), |
108 qr/^THIS/m, 'if-range etag proxy'); | 108 qr/^THIS/m, 'if-range etag proxy'); |
109 | 109 |
110 # range sent using chunked transfer encoding | 110 # range sent using chunked transfer encoding |
111 | 111 |
112 TODO: { | |
113 local $TODO = 'not yet' unless $t->has_version('1.17.0'); | |
114 | |
115 like(http_get_range('/proxy/t.html', 'Range: bytes=-2'), | 112 like(http_get_range('/proxy/t.html', 'Range: bytes=-2'), |
116 qr/2${CRLF}IS${CRLF}0$CRLF$CRLF$/, 'no dublicate final chunk'); | 113 qr/2${CRLF}IS${CRLF}0$CRLF$CRLF$/, 'no dublicate final chunk'); |
117 | |
118 } | |
119 | 114 |
120 ############################################################################### | 115 ############################################################################### |
121 | 116 |
122 sub http_get_range { | 117 sub http_get_range { |
123 my ($url, $extra) = @_; | 118 my ($url, $extra) = @_; |