diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-09-26 19:26:14 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-09-26 19:26:14 +0000 |
| commit | 0659720dc87e606498a13e753299396bceb07188 (patch) | |
| tree | 1bad40c2edb577679df346cf7b9aff72c187a8e1 /src/http/ngx_http_upstream.c | |
| parent | 1bd987019d4700636e2ded5acfae7a81185a512e (diff) | |
| download | nginx-0659720dc87e606498a13e753299396bceb07188.tar.gz nginx-0659720dc87e606498a13e753299396bceb07188.tar.bz2 | |
use ngx_strstrn() and ngx_strcasestrn()
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 878ca42b3..57f40830b 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2636,7 +2636,7 @@ ngx_http_upstream_rewrite_refresh(ngx_http_request_t *r, ngx_table_elt_t *h, 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); |
