mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
For the sake of case/switch code readability, 'fall through'
comments added.
This commit is contained in:
parent
926ded6f4c
commit
acf6c79ac7
@ -1153,6 +1153,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
|
|||||||
break;
|
break;
|
||||||
case '+':
|
case '+':
|
||||||
r->plus_in_uri = 1;
|
r->plus_in_uri = 1;
|
||||||
|
/* fall through */
|
||||||
default:
|
default:
|
||||||
*u++ = ch;
|
*u++ = ch;
|
||||||
break;
|
break;
|
||||||
|
@ -3312,6 +3312,8 @@ ngx_http_upstream_process_accel_expires(ngx_http_request_t *r,
|
|||||||
switch (n) {
|
switch (n) {
|
||||||
case 0:
|
case 0:
|
||||||
u->cacheable = 0;
|
u->cacheable = 0;
|
||||||
|
/* fall through */
|
||||||
|
|
||||||
case NGX_ERROR:
|
case NGX_ERROR:
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
|
|
||||||
@ -4460,6 +4462,8 @@ ngx_http_upstream_bind_set_slot(ngx_conf_t *cf, ngx_command_t *cmd,
|
|||||||
case NGX_DECLINED:
|
case NGX_DECLINED:
|
||||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||||
"invalid address \"%V\"", &value[1]);
|
"invalid address \"%V\"", &value[1]);
|
||||||
|
/* fall through */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return NGX_CONF_ERROR;
|
return NGX_CONF_ERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user