Mercurial > hg > nginx-tests
comparison h2_request_body.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 |
comparison
equal
deleted
inserted
replaced
1985:b5e2609d34a3 | 1986:11463d379570 |
---|---|
36 | 36 |
37 http { | 37 http { |
38 %%TEST_GLOBALS_HTTP%% | 38 %%TEST_GLOBALS_HTTP%% |
39 | 39 |
40 server { | 40 server { |
41 listen 127.0.0.1:8080 http2; | 41 listen 127.0.0.1:8080; |
42 listen 127.0.0.1:8081; | 42 listen 127.0.0.1:8081; |
43 server_name localhost; | 43 server_name localhost; |
44 | 44 |
45 http2 on; | |
45 error_page 400 /proxy2/t.html; | 46 error_page 400 /proxy2/t.html; |
46 | 47 |
47 location / { | 48 location / { |
48 add_header X-Length $http_content_length; | 49 add_header X-Length $http_content_length; |
49 } | 50 } |
75 EOF | 76 EOF |
76 | 77 |
77 $t->write_file('index.html', ''); | 78 $t->write_file('index.html', ''); |
78 $t->write_file('t.html', 'SEE-THIS'); | 79 $t->write_file('t.html', 'SEE-THIS'); |
79 $t->write_file('slow.html', 'SEE-THIS'); | 80 $t->write_file('slow.html', 'SEE-THIS'); |
80 | |
81 # suppress deprecation warning | |
82 | |
83 open OLDERR, ">&", \*STDERR; close STDERR; | |
84 $t->run(); | 81 $t->run(); |
85 open STDERR, ">&", \*OLDERR; | |
86 | 82 |
87 ############################################################################### | 83 ############################################################################### |
88 | 84 |
89 # request body (uses proxied response) | 85 # request body (uses proxied response) |
90 | 86 |