changeset 1275:11c5a854d4e2 stable-0.5

r1275 merge: omit unnecessary conditions
author Igor Sysoev <igor@sysoev.ru>
date Mon, 09 Jul 2007 06:06:15 +0000
parents e02f63bea768
children 00cbe770ff75
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
+++ 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;
     }
 }