aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_proxy_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules/ngx_http_proxy_module.c')
-rw-r--r--src/http/modules/ngx_http_proxy_module.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c
index a6f8755ba..fd3125314 100644
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -1772,9 +1772,7 @@ ngx_http_proxy_rewrite_redirect_text(ngx_http_request_t *r, ngx_table_elt_t *h,
return NGX_ERROR;
}
- p = data;
-
- p = ngx_copy(p, h->value.data, prefix);
+ p = ngx_copy(data, h->value.data, prefix);
if (pr->replacement.text.len) {
p = ngx_copy(p, pr->replacement.text.data, pr->replacement.text.len);
@@ -1824,9 +1822,7 @@ ngx_http_proxy_rewrite_redirect_vars(ngx_http_request_t *r, ngx_table_elt_t *h,
return NGX_ERROR;
}
- p = data;
-
- p = ngx_copy(p, h->value.data, prefix);
+ p = ngx_copy(data, h->value.data, prefix);
e.ip = pr->replacement.vars.values;
e.pos = p;