Mercurial > hg > nginx
diff src/http/modules/ngx_http_rewrite_handler.c @ 218:05592fd7a436
nginx-0.0.1-2004-01-05-23:55:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 05 Jan 2004 20:55:48 +0000 |
parents | f1d0e5f09c1e |
children | 87e73f067470 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_rewrite_handler.c +++ b/src/http/modules/ngx_http_rewrite_handler.c @@ -113,7 +113,7 @@ static ngx_int_t ngx_http_rewrite_handle if (rc == NGX_DECLINED) { if (scf->log) { ngx_log_error(NGX_LOG_NOTICE, r->connection->log, 0, - "\"%s\" is not matched", rule[i].re_name.data); + "\"%s\" does not match", rule[i].re_name.data); } continue; @@ -129,7 +129,7 @@ static ngx_int_t ngx_http_rewrite_handle if (scf->log) { ngx_log_error(NGX_LOG_NOTICE, r->connection->log, 0, - "\"%s\" matched", rule[i].re_name.data); + "\"%s\" matches", rule[i].re_name.data); } uri.len = rule[i].size; @@ -301,8 +301,10 @@ static char *ngx_http_rewrite_rule(ngx_c } } - rule->msize++; - rule->msize *= 3; + if (rule->msize) { + rule->msize++; + rule->msize *= 3; + } if (cf->args->nelts > 3) { if (ngx_strcmp(value[3].data, "last") == 0) {