Skip to content

Commit 19dbb0a

Browse files
committed
Tests: using the "trailers" keyword in proxy trailers tests.
Although not enforced now, this provides an example of the explicit indication to accept trailer fields from the proxied server.
1 parent 52bf350 commit 19dbb0a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

proxy_trailers.t

+5-4
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,18 @@ http {
4949
5050
http2 on;
5151
52+
proxy_http_version 1.1;
53+
proxy_pass_trailers on;
54+
proxy_set_header Connection "te, close";
55+
proxy_set_header TE "trailers";
56+
5257
location / {
5358
proxy_pass http://127.0.0.1:8081;
54-
proxy_http_version 1.1;
55-
proxy_pass_trailers on;
5659
}
5760
5861
location /nobuffering {
5962
proxy_pass http://127.0.0.1:8081/;
6063
proxy_buffering off;
61-
proxy_http_version 1.1;
62-
proxy_pass_trailers on;
6364
}
6465
}
6566

0 commit comments

Comments
 (0)