comparison src/http/modules/ngx_http_proxy_module.c @ 5043:30fe1b1acf93 stable-1.2

Merge of r4963: proxy: better error message about unexpected data. Requested by Igor Sysoev.
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 10 Feb 2013 03:22:58 +0000
parents 05beaa2d87b3
children 8fff74441755
comparison
equal deleted inserted replaced
5042:9be045b4a415 5043:30fe1b1acf93
1608 } else if (p->length < 0) { 1608 } else if (p->length < 0) {
1609 r = p->input_ctx; 1609 r = p->input_ctx;
1610 p->upstream_done = 1; 1610 p->upstream_done = 1;
1611 1611
1612 ngx_log_error(NGX_LOG_WARN, r->connection->log, 0, 1612 ngx_log_error(NGX_LOG_WARN, r->connection->log, 0,
1613 "upstream sent too much data"); 1613 "upstream sent more data than specified in "
1614 "\"Content-Length\" header");
1614 } 1615 }
1615 1616
1616 return NGX_OK; 1617 return NGX_OK;
1617 } 1618 }
1618 1619