comparison src/http/ngx_http_upstream.c @ 8316:13f7085b90d2 quic

Merged with the default branch.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 17 Feb 2021 14:48:35 +0300
parents 279ad36f2f4b 83c4622053b0
children f1986657fc26
comparison
equal deleted inserted replaced
8296:d710c457171c 8316:13f7085b90d2
3739 ngx_chain_t *cl, **ll; 3739 ngx_chain_t *cl, **ll;
3740 ngx_http_upstream_t *u; 3740 ngx_http_upstream_t *u;
3741 3741
3742 u = r->upstream; 3742 u = r->upstream;
3743 3743
3744 if (u->length == 0) {
3745 ngx_log_error(NGX_LOG_WARN, r->connection->log, 0,
3746 "upstream sent more data than specified in "
3747 "\"Content-Length\" header");
3748 return NGX_OK;
3749 }
3750
3744 for (cl = u->out_bufs, ll = &u->out_bufs; cl; cl = cl->next) { 3751 for (cl = u->out_bufs, ll = &u->out_bufs; cl; cl = cl->next) {
3745 ll = &cl->next; 3752 ll = &cl->next;
3746 } 3753 }
3747 3754
3748 cl = ngx_chain_get_free_buf(r->pool, &u->free_bufs); 3755 cl = ngx_chain_get_free_buf(r->pool, &u->free_bufs);