changeset 6796:92ad1c92bcf9

Style: switch.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 04 Nov 2016 19:12:19 +0300
parents 1a917932db96
children 40c2f3e06d23
files src/http/ngx_http_core_module.c src/http/ngx_http_special_response.c
diffstat 2 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -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;
             }
         }
 
--- a/src/http/ngx_http_special_response.c
+++ b/src/http/ngx_http_special_response.c
@@ -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 {