aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-10-01 12:57:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-10-01 12:57:47 +0000
commitf53294103b534d6979700158be18bdf17267f6d0 (patch)
tree86fda3ec84f9172bcaca471c9f81ca5e25861407 /src/http/ngx_http_upstream.c
parent06af5df77fdec9e7f8b8f9c5a8c57b03b1a2cc36 (diff)
downloadnginx-f53294103b534d6979700158be18bdf17267f6d0.tar.gz
nginx-f53294103b534d6979700158be18bdf17267f6d0.zip
pass length clearly
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 57f40830b..0956f0158 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 = ngx_strcasestrn(ho->value.data, "url=", 3);
+ p = ngx_strcasestrn(ho->value.data, "url=", 4 - 1);
if (p) {
rc = r->upstream->rewrite_redirect(r, ho, p + 4 - ho->value.data);