Mercurial > hg > nginx
changeset 1274:7ffdd1bb86d5
omit unnecessary conditions
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 08 Jul 2007 09:38:37 +0000 |
parents | ace48cc7a946 |
children | 1494a23b1ed4 |
files | src/http/modules/ngx_http_fastcgi_module.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c Sun Jul 08 09:16:36 2007 +0000 +++ b/src/http/modules/ngx_http_fastcgi_module.c Sun Jul 08 09:38:37 2007 +0000 @@ -1144,16 +1144,16 @@ return NGX_OK; } - if (rc == NGX_OK && u->buffer.pos == u->buffer.last) { + if (rc == NGX_OK) { return NGX_AGAIN; } - if (rc == NGX_AGAIN) { - ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, - "upstream split a header line in FastCGI records"); - - return NGX_HTTP_UPSTREAM_INVALID_HEADER; - } + /* rc == NGX_AGAIN */ + + ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, + "upstream split a header line in FastCGI records"); + + return NGX_HTTP_UPSTREAM_INVALID_HEADER; } }