Style: switch.
This commit is contained in:
parent
f3093695b9
commit
8e9f1df637
@ -4827,8 +4827,6 @@ ngx_http_core_error_page(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
case NGX_HTTPS_CERT_ERROR:
|
case NGX_HTTPS_CERT_ERROR:
|
||||||
case NGX_HTTPS_NO_CERT:
|
case NGX_HTTPS_NO_CERT:
|
||||||
err->overwrite = NGX_HTTP_BAD_REQUEST;
|
err->overwrite = NGX_HTTP_BAD_REQUEST;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -473,7 +473,6 @@ ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error)
|
|||||||
case NGX_HTTPS_NO_CERT:
|
case NGX_HTTPS_NO_CERT:
|
||||||
case NGX_HTTP_REQUEST_HEADER_TOO_LARGE:
|
case NGX_HTTP_REQUEST_HEADER_TOO_LARGE:
|
||||||
r->err_status = NGX_HTTP_BAD_REQUEST;
|
r->err_status = NGX_HTTP_BAD_REQUEST;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user