# HG changeset patch # User Igor Sysoev # Date 1183961175 0 # Node ID 11c5a854d4e2d7301a868298e1336fb6ed620f3a # Parent e02f63bea7687fd4833e887be8975081435ecb16 r1275 merge: omit unnecessary conditions diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -1144,16 +1144,16 @@ ngx_http_fastcgi_process_header(ngx_http 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; } }