summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_rewrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_http_rewrite.c')
-rw-r--r--src/nxt_http_rewrite.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_http_rewrite.c b/src/nxt_http_rewrite.c
index fb216eeb..ff465ecc 100644
--- a/src/nxt_http_rewrite.c
+++ b/src/nxt_http_rewrite.c
@@ -103,6 +103,9 @@ nxt_http_rewrite(nxt_task_t *task, nxt_http_request_t *r)
*r->path = rp.path;
+ r->uri_changed = 1;
+ r->quoted_target = rp.quoted_target;
+
if (nxt_slow_path(r->log_route)) {
nxt_log(task, NXT_LOG_NOTICE, "URI rewritten to \"%V\"", &r->target);
}