Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 1543:8596627c4cc5
use ngx_strstrn() and ngx_strcasestrn()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 26 Sep 2007 19:26:14 +0000 |
parents | 56f1ea5baabb |
children | 099d8470e6c3 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2636,7 +2636,7 @@ ngx_http_upstream_rewrite_refresh(ngx_ht if (r->upstream->rewrite_redirect) { - p = (u_char *) ngx_strstr(ho->value.data, "url="); + p = ngx_strcasestrn(ho->value.data, "url=", 3); if (p) { rc = r->upstream->rewrite_redirect(r, ho, p + 4 - ho->value.data);