diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-07-08 09:38:37 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-07-08 09:38:37 +0000 |
commit | 7797887b1ddc4b60f7332feae12d7812173ebc91 (patch) | |
tree | 1412faf9d1c82415f657944cb7c8998ab41ce116 /src/http/modules/ngx_http_fastcgi_module.c | |
parent | 4d2e0f019811a727c525aebe2a4c5b0708c89de6 (diff) | |
download | nginx-7797887b1ddc4b60f7332feae12d7812173ebc91.tar.gz nginx-7797887b1ddc4b60f7332feae12d7812173ebc91.zip |
omit unnecessary conditions
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
-rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 4263ea1ed..2e592824a 100644 --- 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_request_t *r) 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"); + /* rc == NGX_AGAIN */ - return NGX_HTTP_UPSTREAM_INVALID_HEADER; - } + ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, + "upstream split a header line in FastCGI records"); + + return NGX_HTTP_UPSTREAM_INVALID_HEADER; } } |