Skip to content

Commit 348daaa

Browse files
committed
Tests: removed rewrite dependency in proxy_cache_range.t.
1 parent 3a3982a commit 348daaa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

proxy_cache_range.t

+6-4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ http {
4646
proxy_cache NAME;
4747
proxy_cache_valid 200 1m;
4848
}
49+
4950
location /min_uses {
5051
proxy_pass http://127.0.0.1:8081/;
5152
proxy_cache NAME;
@@ -59,9 +60,10 @@ http {
5960
server_name localhost;
6061
6162
location / {
62-
if ($arg_s) {
63-
limit_rate 50k;
64-
}
63+
}
64+
65+
location /tbig.html {
66+
limit_rate 50k;
6567
}
6668
}
6769
}
@@ -100,7 +102,7 @@ like(http_get_range('/min_uses/t.html?3', 'Range: bytes=4-'),
100102
like(http_get_range('/min_uses/t.html?4', 'Range: bytes=0-2,4-'),
101103
qr/^SEE.*^THIS/ms, 'multipart range below min_uses');
102104

103-
like(http_get_range('/tbig.html?s=1', 'Range: bytes=0-19'),
105+
like(http_get_range('/tbig.html', 'Range: bytes=0-19'),
104106
qr/^XX000001XXXX000002XX$/ms, 'range of response received in parts');
105107

106108
###############################################################################

0 commit comments

Comments
 (0)