[nginx] Style: switch.

Ruslan Ermilov ru at nginx.com
Fri Nov 4 16:13:31 UTC 2016


details:   http://hg.nginx.org/nginx/rev/92ad1c92bcf9
branches:  
changeset: 6796:92ad1c92bcf9
user:      Ruslan Ermilov <ru at nginx.com>
date:      Fri Nov 04 19:12:19 2016 +0300
description:
Style: switch.

diffstat:

 src/http/ngx_http_core_module.c      |  2 --
 src/http/ngx_http_special_response.c |  1 -
 2 files changed, 0 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 1a917932db96 -r 92ad1c92bcf9 src/http/ngx_http_core_module.c
--- a/src/http/ngx_http_core_module.c	Thu Nov 03 17:10:29 2016 +0300
+++ b/src/http/ngx_http_core_module.c	Fri Nov 04 19:12:19 2016 +0300
@@ -4827,8 +4827,6 @@ ngx_http_core_error_page(ngx_conf_t *cf,
                 case NGX_HTTPS_CERT_ERROR:
                 case NGX_HTTPS_NO_CERT:
                     err->overwrite = NGX_HTTP_BAD_REQUEST;
-                default:
-                    break;
             }
         }
 
diff -r 1a917932db96 -r 92ad1c92bcf9 src/http/ngx_http_special_response.c
--- a/src/http/ngx_http_special_response.c	Thu Nov 03 17:10:29 2016 +0300
+++ b/src/http/ngx_http_special_response.c	Fri Nov 04 19:12:19 2016 +0300
@@ -473,7 +473,6 @@ ngx_http_special_response_handler(ngx_ht
             case NGX_HTTPS_NO_CERT:
             case NGX_HTTP_REQUEST_HEADER_TOO_LARGE:
                 r->err_status = NGX_HTTP_BAD_REQUEST;
-                break;
         }
 
     } else {



More information about the nginx-devel mailing list