Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_grpc_module.c @ 8882:2bf7792c262e
Upstream: header handlers can now return parsing errors.
With this change, duplicate Content-Length and Transfer-Encoding headers
are now rejected. Further, responses with invalid Content-Length or
Transfer-Encoding headers are now rejected, as well as responses with both
Content-Length and Transfer-Encoding.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 30 May 2022 21:25:48 +0300 |
parents | 336084ff943b |
children | c7e25324be11 |
comparison
equal
deleted
inserted
replaced
8881:2025aae94739 | 8882:2bf7792c262e |
---|---|
1889 h->hash = ngx_hash_key(h->key.data, h->key.len); | 1889 h->hash = ngx_hash_key(h->key.data, h->key.len); |
1890 | 1890 |
1891 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash, | 1891 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash, |
1892 h->lowcase_key, h->key.len); | 1892 h->lowcase_key, h->key.len); |
1893 | 1893 |
1894 if (hh && hh->handler(r, h, hh->offset) != NGX_OK) { | 1894 if (hh) { |
1895 return NGX_ERROR; | 1895 rc = hh->handler(r, h, hh->offset); |
1896 | |
1897 if (rc != NGX_OK) { | |
1898 return rc; | |
1899 } | |
1896 } | 1900 } |
1897 | 1901 |
1898 continue; | 1902 continue; |
1899 } | 1903 } |
1900 | 1904 |