Mercurial > hg > nginx-tests
diff h2_request_body_preread.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/h2_request_body_preread.t Mon Jun 03 18:15:28 2024 +0300 +++ b/h2_request_body_preread.t Tue Jun 04 05:08:02 2024 +0300 @@ -40,10 +40,11 @@ limit_req_zone $binary_remote_addr zone=req:1m rate=20r/m; server { - listen 127.0.0.1:8080 http2; + listen 127.0.0.1:8080; listen 127.0.0.1:8081; server_name localhost; + http2 on; http2_body_preread_size 10; location /t { } @@ -59,9 +60,10 @@ } server { - listen 127.0.0.1:8082 http2; + listen 127.0.0.1:8082; server_name localhost; + http2 on; http2_body_preread_size 0; location / { @@ -76,9 +78,11 @@ } server { - listen 127.0.0.1:8083 http2; + listen 127.0.0.1:8083; server_name localhost; + http2 on; + location / { add_header X-Body $request_body; proxy_pass http://127.0.0.1:8081/t; @@ -89,12 +93,7 @@ EOF $t->write_file('t', ''); - -# suppress deprecation warning - -open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -open STDERR, ">&", \*OLDERR; ###############################################################################