]> git.kaiwu.me - nginx.git/commitdiff
Stylistic change in checking the boolean expression.
authorRuslan Ermilov <ru@nginx.com>
Wed, 12 Oct 2011 09:27:34 +0000 (09:27 +0000)
committerRuslan Ermilov <ru@nginx.com>
Wed, 12 Oct 2011 09:27:34 +0000 (09:27 +0000)
src/http/ngx_http_special_response.c

index 0d66a4b6b92b4581c3c60ce2d2879acda8ec419a..ea0378e4e3f8cf9a6ce21fef73226c5ef4ba0352 100644 (file)
@@ -375,7 +375,7 @@ ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error)
         }
     }
 
-    if (r->lingering_close == 1) {
+    if (r->lingering_close) {
         switch (error) {
             case NGX_HTTP_BAD_REQUEST:
             case NGX_HTTP_TO_HTTPS: