Mercurial > hg > nginx
comparison src/http/modules/ngx_http_proxy_module.c @ 4962:13a5202b6b4b
Proxy: better error message about unexpected data.
Requested by Igor Sysoev.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 13 Dec 2012 13:45:39 +0000 |
parents | 4251e72b8bb4 |
children | fd84344f1df7 |
comparison
equal
deleted
inserted
replaced
4961:ed576bd1d9c0 | 4962:13a5202b6b4b |
---|---|
1612 } else if (p->length < 0) { | 1612 } else if (p->length < 0) { |
1613 r = p->input_ctx; | 1613 r = p->input_ctx; |
1614 p->upstream_done = 1; | 1614 p->upstream_done = 1; |
1615 | 1615 |
1616 ngx_log_error(NGX_LOG_WARN, r->connection->log, 0, | 1616 ngx_log_error(NGX_LOG_WARN, r->connection->log, 0, |
1617 "upstream sent too much data"); | 1617 "upstream sent more data than specified in " |
1618 "\"Content-Length\" header"); | |
1618 } | 1619 } |
1619 | 1620 |
1620 return NGX_OK; | 1621 return NGX_OK; |
1621 } | 1622 } |
1622 | 1623 |