diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index 5fc4cfca0..02e2be3bb 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -1394,7 +1394,7 @@ ngx_http_script_if_code(ngx_http_script_engine_t *e) e->sp--; - if (e->sp->len && (e->sp->len !=1 || e->sp->data[0] != '0')) { + if (e->sp->len && (e->sp->len != 1 || e->sp->data[0] != '0')) { if (code->loc_conf) { e->request->loc_conf = code->loc_conf; ngx_http_update_location_config(e->request);