Mercurial > hg > nginx-tests
diff h3_server_name.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 | 236d038dc04a |
children |
line wrap: on
line diff
--- a/h3_server_name.t +++ b/h3_server_name.t @@ -44,10 +44,12 @@ http { ssl_certificate localhost.crt; server { - listen 127.0.0.1:8443 ssl http2; + listen 127.0.0.1:8443 ssl; listen 127.0.0.1:%%PORT_8980_UDP%% quic; server_name ~^(?P<name>.+)\.example\.com$; + http2 on; + location / { return 200 $name; } @@ -74,11 +76,7 @@ foreach my $name ('localhost') { or die "Can't create certificate for $name: $!\n"; } -# suppress deprecation warning - -open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -open STDERR, ">&", \*OLDERR; ###############################################################################