diff options
Diffstat (limited to 'usr.sbin/nginx/src/http/ngx_http_script.c')
| -rw-r--r-- | usr.sbin/nginx/src/http/ngx_http_script.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/nginx/src/http/ngx_http_script.c b/usr.sbin/nginx/src/http/ngx_http_script.c index a703f083789..6d81b4435c7 100644 --- a/usr.sbin/nginx/src/http/ngx_http_script.c +++ b/usr.sbin/nginx/src/http/ngx_http_script.c @@ -1106,6 +1106,8 @@ ngx_http_script_regex_end_code(ngx_http_script_engine_t *e) "rewritten redirect: \"%V\"", &e->buf); } + ngx_http_clear_location(r); + r->headers_out.location = ngx_list_push(&r->headers_out.headers); if (r->headers_out.location == NULL) { e->ip = ngx_http_script_exit; |
