Mercurial > hg > nginx
comparison src/http/ngx_http_request.h @ 7234:c693daca57f7
gRPC: special handling of the TE request header.
According to the gRPC protocol specification, the "TE" header is used
to detect incompatible proxies, and at least grpc-c server rejects
requests without "TE: trailers".
To preserve the logic, we have to pass "TE: trailers" to the backend if
and only if the original request contains "trailers" in the "TE" header.
Note that no other TE values are allowed in HTTP/2, so we have to remove
anything else.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 17 Mar 2018 23:04:25 +0300 |
parents | 33edea74bd58 |
children | 89430899c72a |
comparison
equal
deleted
inserted
replaced
7233:2713b2dbf5bb | 7234:c693daca57f7 |
---|---|
195 | 195 |
196 ngx_table_elt_t *range; | 196 ngx_table_elt_t *range; |
197 ngx_table_elt_t *if_range; | 197 ngx_table_elt_t *if_range; |
198 | 198 |
199 ngx_table_elt_t *transfer_encoding; | 199 ngx_table_elt_t *transfer_encoding; |
200 ngx_table_elt_t *te; | |
200 ngx_table_elt_t *expect; | 201 ngx_table_elt_t *expect; |
201 ngx_table_elt_t *upgrade; | 202 ngx_table_elt_t *upgrade; |
202 | 203 |
203 #if (NGX_HTTP_GZIP || NGX_HTTP_HEADERS) | 204 #if (NGX_HTTP_GZIP || NGX_HTTP_HEADERS) |
204 ngx_table_elt_t *accept_encoding; | 205 ngx_table_elt_t *accept_encoding; |