Mercurial > hg > nginx-tests
comparison h2_server_tokens.t @ 1986:11463d379570
Tests: reworked HTTP/2 tests to use "http2 on".
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 04 Jun 2024 05:08:02 +0300 |
parents | 78452573505c |
children |
comparison
equal
deleted
inserted
replaced
1985:b5e2609d34a3 | 1986:11463d379570 |
---|---|
35 | 35 |
36 http { | 36 http { |
37 %%TEST_GLOBALS_HTTP%% | 37 %%TEST_GLOBALS_HTTP%% |
38 | 38 |
39 server { | 39 server { |
40 listen 127.0.0.1:8080 http2; | 40 listen 127.0.0.1:8080; |
41 server_name localhost; | 41 server_name localhost; |
42 | |
43 http2 on; | |
42 | 44 |
43 location /200 { | 45 location /200 { |
44 return 200; | 46 return 200; |
45 } | 47 } |
46 | 48 |
86 } | 88 } |
87 } | 89 } |
88 | 90 |
89 EOF | 91 EOF |
90 | 92 |
91 # suppress deprecation warning | |
92 | |
93 open OLDERR, ">&", \*STDERR; close STDERR; | |
94 $t->run(); | 93 $t->run(); |
95 open STDERR, ">&", \*OLDERR; | |
96 | 94 |
97 ############################################################################### | 95 ############################################################################### |
98 | 96 |
99 my $re = qr/\w+\/\d+\.\d+\.\d+/; | 97 my $re = qr/\w+\/\d+\.\d+\.\d+/; |
100 | 98 |