comparison h2_request_body.t @ 974:882267679006

Tests: simplified parallel modifications in tests. Mail tests were simplified in c227348453db.
author Andrey Zelenkov <zelenkov@nginx.com>
date Tue, 12 Jul 2016 17:39:03 +0300
parents b8948aecba12
children 196d33c2bb45
comparison
equal deleted inserted replaced
973:7d7aef8b9f3a 974:882267679006
38 38
39 http { 39 http {
40 %%TEST_GLOBALS_HTTP%% 40 %%TEST_GLOBALS_HTTP%%
41 41
42 server { 42 server {
43 listen 127.0.0.1:%%PORT_0%% http2; 43 listen 127.0.0.1:8080 http2;
44 listen 127.0.0.1:%%PORT_1%%; 44 listen 127.0.0.1:8081;
45 server_name localhost; 45 server_name localhost;
46 46
47 location / { 47 location / {
48 add_header X-Length $http_content_length; 48 add_header X-Length $http_content_length;
49 } 49 }
50 location /proxy2/ { 50 location /proxy2/ {
51 add_header X-Body $request_body; 51 add_header X-Body $request_body;
52 add_header X-Body-File $request_body_file; 52 add_header X-Body-File $request_body_file;
53 client_body_in_file_only on; 53 client_body_in_file_only on;
54 proxy_pass http://127.0.0.1:%%PORT_1%%/; 54 proxy_pass http://127.0.0.1:8081/;
55 } 55 }
56 location /client_max_body_size { 56 location /client_max_body_size {
57 add_header X-Body $request_body; 57 add_header X-Body $request_body;
58 add_header X-Body-File $request_body_file; 58 add_header X-Body-File $request_body_file;
59 client_body_in_single_buffer on; 59 client_body_in_single_buffer on;
60 client_body_in_file_only on; 60 client_body_in_file_only on;
61 proxy_pass http://127.0.0.1:%%PORT_1%%/; 61 proxy_pass http://127.0.0.1:8081/;
62 client_max_body_size 10; 62 client_max_body_size 10;
63 } 63 }
64 } 64 }
65 } 65 }
66 66