Skip to content

Commit 668b832

Browse files
committed
fix
1 parent af60c67 commit 668b832

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

t/upstream_pass_trailers.t

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ location /a6.RouteService/GetRoute {
2323
ngx.req.set_body_data(ngx.decode_base64("AAAAAAcKBXdvcmxkCgo="))
2424
2525
-- keep upstream trailers
26-
assert(require("resty.apisix.upstream").set_pass_trailers(false), 'failed to set pass trailers')
26+
assert(require("resty.apisix.upstream").set_pass_trailers(true), 'failed to set pass trailers')
2727
}
2828
grpc_pass grpc://127.0.0.1:50001;
2929
}
@@ -53,8 +53,8 @@ location /t {
5353
assert(string.find(data, "grpc-status: 0", 1, true), "missing trailer")
5454
}
5555
}
56-
--- request
57-
GET /t
56+
--- error_log
57+
apisix upstream pass trailers set: 1
5858
5959
6060
@@ -98,5 +98,5 @@ location /t {
9898
assert(not string.find(data, "grpc-status: 0", 1, true), "exist trailer")
9999
}
100100
}
101-
--- request
102-
GET /t
101+
--- error_log
102+
apisix upstream pass trailers set: 0

0 commit comments

Comments
 (0)