File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ use Test::Nginx::HTTP2;
23
23
select STDERR ; $| = 1;
24
24
select STDOUT ; $| = 1;
25
25
26
- my $t = Test::Nginx-> new()-> has(qw/ http http_v2 proxy cache rewrite / )-> plan(12)
26
+ my $t = Test::Nginx-> new()-> has(qw/ http http_v2 proxy cache/ )-> plan(12)
27
27
-> write_file_expand(' nginx.conf' , <<'EOF' );
28
28
29
29
%%TEST_GLOBALS%%
@@ -52,23 +52,26 @@ http {
52
52
proxy_cache NAME;
53
53
proxy_cache_valid 1m;
54
54
}
55
+
55
56
location /proxy_buffering_off {
56
57
proxy_pass http://127.0.0.1:8081/;
57
58
proxy_cache NAME;
58
59
proxy_cache_valid 1m;
59
60
proxy_buffering off;
60
61
}
61
- location / {
62
- if ($arg_slow) {
63
- set $limit_rate 200;
64
- }
62
+
63
+ location / { }
64
+
65
+ location /slow {
66
+ limit_rate 200;
65
67
}
66
68
}
67
69
}
68
70
69
71
EOF
70
72
71
73
$t -> write_file(' t.html' , ' SEE-THIS' );
74
+ $t -> write_file(' slow.html' , ' SEE-THIS' );
72
75
$t -> run();
73
76
74
77
# ##############################################################################
@@ -158,7 +161,7 @@ ok(!grep ({ $_->{type} eq "DATA" } @$frames),
158
161
# HEADERS should not be produced for the canceled stream
159
162
160
163
$s = Test::Nginx::HTTP2-> new();
161
- $sid = $s -> new_stream({ path => ' /cache/t .html?slow=1 ' });
164
+ $sid = $s -> new_stream({ path => ' /cache/slow .html' });
162
165
163
166
$s -> h2_rst($sid , 8);
164
167
You can’t perform that action at this time.
0 commit comments