]> git.kaiwu.me - nginx.git/commitdiff
r1275 merge:
authorIgor Sysoev <igor@sysoev.ru>
Mon, 9 Jul 2007 06:06:15 +0000 (06:06 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 9 Jul 2007 06:06:15 +0000 (06:06 +0000)
omit unnecessary conditions

src/http/modules/ngx_http_fastcgi_module.c

index 4263ea1edc28e3040d5bddd9a19f213de4bfc74b..2e592824af2c22e458a52db154d61e0b41e39e0f 100644 (file)
@@ -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;
     }
 }