summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_controller.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_controller.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c
index 6898be6d..a3c0af17 100644
--- a/src/nxt_controller.c
+++ b/src/nxt_controller.c
@@ -554,14 +554,7 @@ nxt_controller_process_request(nxt_task_t *task, nxt_conn_t *c,
static const nxt_str_t empty_obj = nxt_string("{}");
- path.start = req->parser.target_start;
-
- if (req->parser.args_start != NULL) {
- path.length = req->parser.args_start - path.start;
-
- } else {
- path.length = req->parser.target_end - path.start;
- }
+ path = req->parser.path;
if (path.length > 1 && path.start[path.length - 1] == '/') {
path.length--;