Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_fastcgi_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 | f8f6b9fee66a |
children |
comparison
equal
deleted
inserted
replaced
8881:2025aae94739 | 8882:2bf7792c262e |
---|---|
2005 } | 2005 } |
2006 | 2006 |
2007 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash, | 2007 hh = ngx_hash_find(&umcf->headers_in_hash, h->hash, |
2008 h->lowcase_key, h->key.len); | 2008 h->lowcase_key, h->key.len); |
2009 | 2009 |
2010 if (hh && hh->handler(r, h, hh->offset) != NGX_OK) { | 2010 if (hh) { |
2011 return NGX_ERROR; | 2011 rc = hh->handler(r, h, hh->offset); |
2012 | |
2013 if (rc != NGX_OK) { | |
2014 return rc; | |
2015 } | |
2012 } | 2016 } |
2013 | 2017 |
2014 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 2018 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
2015 "http fastcgi header: \"%V: %V\"", | 2019 "http fastcgi header: \"%V: %V\"", |
2016 &h->key, &h->value); | 2020 &h->key, &h->value); |