Skip to content

Commit 68c78b0

Browse files
committed
fix
1 parent 9349f40 commit 68c78b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/upstream_pass_trailers.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ Since the processing logic for the trailer is located in the upstream module, it
5757
--- http_config
5858
server {
5959
listen 1985;
60-
location /t {
60+
location / {
6161
add_trailer "foo" "bar";
6262
echo "hello";
6363
}
6464
}
6565
--- config
6666
location /up {
67-
proxy_pass http://127.0.0.1:1985/t;
67+
grpc_pass grpc://127.0.0.1:1985;
6868
}
6969
location /t {
7070
access_by_lua_block {
@@ -108,14 +108,14 @@ Since the processing logic for the trailer is located in the upstream module, it
108108
--- http_config
109109
server {
110110
listen 1985;
111-
location /t {
111+
location / {
112112
add_trailer "foo" "bar";
113113
echo "hello";
114114
}
115115
}
116116
--- config
117117
location /up {
118-
proxy_pass http://127.0.0.1:1985/t;
118+
grpc_pass grpc://127.0.0.1:1985;
119119
}
120120
location /t {
121121
access_by_lua_block {

0 commit comments

Comments
 (0)