Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_uwsgi_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 | 8b7a96fdd54c |
children | c7e25324be11 |
comparison
equal
deleted
inserted
replaced
8881:2025aae94739 | 8882:2bf7792c262e |
---|---|
1338 } | 1338 } |
1339 | 1339 |
1340 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash, | 1340 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash, |
1341 h->lowcase_key, h->key.len); | 1341 h->lowcase_key, h->key.len); |
1342 | 1342 |
1343 if (hh && hh->handler(r, h, hh->offset) != NGX_OK) { | 1343 if (hh) { |
1344 return NGX_ERROR; | 1344 rc = hh->handler(r, h, hh->offset); |
1345 | |
1346 if (rc != NGX_OK) { | |
1347 return rc; | |
1348 } | |
1345 } | 1349 } |
1346 | 1350 |
1347 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 1351 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
1348 "http uwsgi header: \"%V: %V\"", &h->key, &h->value); | 1352 "http uwsgi header: \"%V: %V\"", &h->key, &h->value); |
1349 | 1353 |