Skip to content

Commit 347664e

Browse files
authored
fix: grpc_set_header Te trailers (#9312)
1 parent fc6cb98 commit 347664e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apisix/cli/ngx_tpl.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ http {
766766
grpc_set_header "Host" $upstream_host;
767767
{% end %}
768768
grpc_set_header Content-Type application/grpc;
769+
grpc_set_header TE trailers;
769770
grpc_socket_keepalive on;
770771
grpc_pass $upstream_scheme://apisix_backend;
771772

t/APISIX.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ _EOC_
203203

204204
$grpc_location .= <<_EOC_;
205205
grpc_set_header Content-Type application/grpc;
206+
grpc_set_header TE trailers;
206207
grpc_socket_keepalive on;
207208
grpc_pass \$upstream_scheme://apisix_backend;
208209

0 commit comments

Comments
 (0)