]> git.kaiwu.me - nginx.git/commitdiff
style fix
authorIgor Sysoev <igor@sysoev.ru>
Wed, 21 May 2008 17:39:51 +0000 (17:39 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 21 May 2008 17:39:51 +0000 (17:39 +0000)
src/http/ngx_http_request.c
src/http/ngx_http_special_response.c

index 5258ad91fb2fd3546fe36445732855b463c999b1..9ea987fb8c2baad0cb67f6dff0fe95ab519969d3 100644 (file)
@@ -1836,7 +1836,7 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
 
     if (!ngx_terminate
          && !ngx_exiting
-         && r->keepalive != 0
+         && r->keepalive
          && clcf->keepalive_timeout > 0)
     {
         ngx_http_set_keepalive(r);
index 306944b617520c65e00d0856f6a124c0d08e3dd8..32b2ed59954652d426dfc5e80c027cecc921fd30 100644 (file)
@@ -343,7 +343,7 @@ ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error)
 
     r->err_status = error;
 
-    if (r->keepalive != 0) {
+    if (r->keepalive) {
         switch (error) {
             case NGX_HTTP_BAD_REQUEST:
             case NGX_HTTP_REQUEST_ENTITY_TOO_LARGE: