Skip to content

Commit

Permalink
fix rewritten Refresh header length
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsysoev committed Jun 7, 2010
1 parent 1f5cf36 commit 82e1933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/modules/ngx_http_proxy_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,7 @@ ngx_http_proxy_rewrite_redirect_text(ngx_http_request_t *r, ngx_table_elt_t *h,
return NGX_DECLINED;
}

len = prefix + pr->replacement.text.len + h->value.len - pr->redirect.len;
len = pr->replacement.text.len + h->value.len - pr->redirect.len;

data = ngx_pnalloc(r->pool, len);
if (data == NULL) {
Expand Down Expand Up @@ -1812,7 +1812,7 @@ ngx_http_proxy_rewrite_redirect_vars(ngx_http_request_t *r, ngx_table_elt_t *h,
e.ip = pr->replacement.vars.lengths;
e.request = r;

len = prefix + h->value.len - pr->redirect.len;
len = h->value.len - pr->redirect.len;

while (*(uintptr_t *) e.ip) {
lcode = *(ngx_http_script_len_code_pt *) e.ip;
Expand Down

0 comments on commit 82e1933

Please sign in to comment.